#106336403 Page Not Found when previewing not hidden page of hidden parent, both with extendToSubpages=1
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
- create a page “test”, set it as hidden=1; extendToSubpages=1
- create a subpage “test2” of “test”, set it as visible (hidden=0) and extendToSubpages=1
- 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
Related issues 7
- Bug #17599Frontend preview doesn't work for subpages of hidden and restricted pages
- Bug #87392Subpages of hidden pages with extendToSubpages activated cannot be accessed even with backend login
- Bug #92286?ADMCMD_simUser= not automatically appended to URL for child page of page with FE group
- Bug #92675Page preview not possible if page inherits fe_group access
- Feature #97544Replace hooks with events for Preview URL generation
- Bug #104629403 for pages in FE if admin-panel active and non-admin user opens page with no permission in BE
- Bug #106343403 and misleading error in FE when NOT logged in if page is descendant of hidden=1 and extendToSubpages=1