Project

General

Profile

Actions

Bug #87392

open

Subpages of hidden pages with extendToSubpages activated cannot be accessed even with backend login

Added by Beat Haenger about 5 years ago. Updated 6 months ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-01-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Tested with: Vanilla TYPO3 9.5.3 and Vanilla TYPO3 8.7.17 and TYPO3 8.7.21

Hidden pages can generally only be accessed with backend login (or the configuration of the admin panel will define the behaviour if it is activated).

If there is a page A with a subpage page B and page A is hidden then this does not affect page B. Page B can still be accessed without backend login.

But if page A also has extendToSubpages enabled then page B cannot be accessed even with backend login (404-handling will define what happens). The desired behaviour would be that it is possible to deactivate pages recursively with one action. Currently this is not possible.


Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #93540: It is not clear which options extendToSubpages in page properties aplies toNew2021-02-18

Actions
Related to TYPO3 Core - Bug #28943: Pages under 'extendtosubpages' access are not viewable in view module.Closed2011-08-12

Actions
Actions #1

Updated by Beat Haenger about 5 years ago

  • Subject changed from Subpages of hidden pages with extendToSubpages activates cannot be accessed even with backend login to Subpages of hidden pages with extendToSubpages activated cannot be accessed even with backend login
Actions #2

Updated by Beat Haenger about 5 years ago

A good work around is to use the page type backend user area which works correctly (subpages can be accessed with backend login).

Actions #3

Updated by Riccardo De Contardi almost 5 years ago

I can still reproduce this issue on 10.0.0-dev (latest master);

how to reproduce it:

1) create a page "test", set it as "hidden"; set: "extendToSubpages" = 1
2) create a subpage "test2" of "test", set it as visible
3) on the pagetree, click on "test2" > preview

Results

you see the error:

Page Not Found
Reason: Subsection was found and not accessible
Actions #4

Updated by Kevin Appelt over 4 years ago

Maybe this is the similar problem (TYPO3 v9.5.8):
Translated pages can not be shown if default language is disabled.

How to reproduce it:
1) Create a page "Test", set it as "disabled"
2) Create a translation ("Translated Test") of page "Test", set it as "enabled"
3) In the listview of page "Test", click on the page translation "Translated Test" > preview

Results

Page Not Found
Reason: ID was not an accessible page

Result is the same if "Hide default translation of page" and/or "Hide page if no translation for current language exists" are set or not.

As soon as:
1) the default language is set to "enabled" the translation preview works fine.
2) the translation is set to "disabled" the translation preview works fine, too.

Actions #5

Updated by Riccardo De Contardi about 4 years ago

Is this related or a duplicate of #26484 ?

Actions #6

Updated by Susanne Moog about 4 years ago

  • Category set to Link Handling, Site Handling & Routing
  • Status changed from New to Needs Feedback

Can you please recheck if that still happens with newer versions? There were some fixes for the preview handling.

Actions #7

Updated by Riccardo De Contardi over 3 years ago

1) I performed again the test on my comment https://forge.typo3.org/issues/87392#note-3 on 11.0.0-dev (latest master)

Result: Same error is triggered

2) I performed the test on comment https://forge.typo3.org/issues/87392#note-4 on 11.0.0-dev (latest master)

Result: Same error is triggered

Actions #8

Updated by Kevin Ditscheid over 3 years ago

Hi, I investigated the issue a bit and at least for the translated page issues, the problem in part stems from the fact that the function `resolveTranslatedPageId` can not resolve the default language page if this is a hidden page, where the translation is not. This is because the given context to the `PageRepository` is not set to handle hidden default pages or records, because the `visibility` Aspect is set to hidden. This even is true when previewing from the backend, because the context does not account for the backend login.
I managed to show the page by simulating a `visibility` aspect at this point in the code: https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php#L1238
With this simulated aspect, the page loads, but the content is missing. I do not know if I am able to solve this in a reasonable way, but I wanted to share my investigation with you.

Actions #9

Updated by Sybille Peters over 3 years ago

  • Status changed from Needs Feedback to New

I removed "Needs Feedback" 'since it looks like it is reproducible.

Actions #10

Updated by Stefan P almost 3 years ago

  • Related to Bug #93540: It is not clear which options extendToSubpages in page properties aplies to added
Actions #11

Updated by Anonymous over 1 year ago

Can't believe this is still unresolved. This issue has 4th birthday soon. I'll have a look whether I can provide a patch or not.

Actions #12

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75562

Actions #13

Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75562

Actions #14

Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75562

Actions #15

Updated by Gerrit Code Review over 1 year ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75562

Actions #16

Updated by Gerrit Code Review over 1 year ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75562

Actions #17

Updated by Gerrit Code Review over 1 year ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75562

Actions #18

Updated by Gerrit Code Review over 1 year ago

Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75562

Actions #19

Updated by Gerrit Code Review over 1 year ago

Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75562

Actions #20

Updated by Gerrit Code Review over 1 year ago

Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75562

Actions #21

Updated by Gerrit Code Review 11 months ago

Patch set 10 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75562

Actions #22

Updated by Sybille Peters 7 months ago

  • Related to Bug #28943: Pages under 'extendtosubpages' access are not viewable in view module. added
Actions #23

Updated by Gerrit Code Review 7 months ago

Patch set 11 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75562

Actions #24

Updated by Sybille Peters 6 months ago

Is the problem still reproducible with TYPO3 >= v12?

I cannot reproduce the problem with extendToSubpages anymore in TYPO3 v12 and v13. I can still reproduce it with v11.

page A: hidden=1, extendToSubpages=1
-> page B (subpage): hidden =0


Loading page B (without adminpanel enabled) results in 403 in v11, but is ok in v12 and v13.
Actions

Also available in: Atom PDF