Issue Bug Closed

#106336403 Page Not Found when previewing not hidden page of hidden parent, both with extendToSubpages=1

Sybille Peters 03/07/25, 15:47 updated 12/02/25, 14:22

Description

I thought #87392 was resolved but now found reproducible test case where bug still reappears, however in a more narrow scenario:

The difference is that the not hidden subpage also has extendToSubpages=1.

Reproduce

page test: hidden=1, extendToSubpages=1
   |
   -> page test2: hidden=0, extendToSubpages=1
  1. create a page “test”, set it as hidden=1; extendToSubpages=1
  2. create a subpage “test2” of “test”, set it as visible (hidden=0) and extendToSubpages=1
  3. We are logged in the Backend, on the pagetree, click on “test2” > preview
  • Expected result: We expect page to be rendered with a “Preview” in top right
  • Actual result: 403:

> 403
> Page Not Found
> The page did not exist or was inaccessible. Reason: Subsection was found and not accessible
> Request: 21197dc0bb977

Versions

reproduced with

  • latest main (14.0.0-dev)
  • latest 13.4 branch (13.4.6-dev)
  • latest 12.4 branch (12.4.28-dev)

Reviews 3