Issue Bug Under Review

#111701Preview of a page below several restricted pages with "Extend to Subpages" fails with 403

Matthias Vogel 12/02/26, 08:42 updated 12/02/26, 08:55

Description

A page can be below two or more pages that have “Extend to Subpages” set. The frontend checks the access restriction of the page and of each of these pages. The preview link from the backend simulates the frontend user groups and the access time of one page only.

Steps to reproduce

  1. Create page A with “Extend to Subpages” and a start time in the future.
  2. Create page B below page A with “Extend to Subpages” and a frontend user group.
  3. Create page C below page B.
  4. Open the preview of page C in the backend.

Expected: The preview shows page C.
Actual: The frontend responds with 403 “Subsection was found and not accessible”. The preview link simulates the user group of page B, but not the start time of page A.

Same problem

  • Two ancestors have different user groups: the link simulates only the group of the lower ancestor.
  • Page C has “Extend to Subpages” itself: the link ignores the restrictions of the ancestors.
  • Page C has its own restriction and an ancestor has “Extend to Subpages”: the link simulates only the restriction of the ancestor.

Reviews 1

History 45

  1. Matthias Vogel changed Related to #110664 12/02/26, 08:42

  2. Matthias Vogel changed Related to #111700 12/02/26, 08:42

  3. Matthias Vogel changed Related to #104081 12/02/26, 08:42

  4. Matthias Vogel changed Related to #96778 12/02/26, 08:42

  5. Gerrit Code Review pushed patch set 1 for main to change 98275 status New Under Review 12/02/26, 08:55