Bug #87392
openSubpages of hidden pages with extendToSubpages activated cannot be accessed even with backend login
Added by Beat Haenger almost 6 years ago. Updated about 1 month ago.
0%
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.
Updated by Beat Haenger almost 6 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
Updated by Beat Haenger almost 6 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).
Updated by Riccardo De Contardi over 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
Updated by Kevin Appelt over 5 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.
Updated by Riccardo De Contardi over 4 years ago
Is this related or a duplicate of #26484 ?
Updated by Susanne Moog over 4 years ago
- Category set to Site Handling, Site Sets & 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.
Updated by Riccardo De Contardi over 4 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
Updated by Kevin Ditscheid over 4 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.
Updated by Sybille Peters about 4 years ago
- Status changed from Needs Feedback to New
I removed "Needs Feedback" 'since it looks like it is reproducible.
Updated by S P over 3 years ago
- Related to Bug #93540: It is not clear which options extendToSubpages in page properties aplies to added
Updated by Anonymous about 2 years 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.
Updated by Gerrit Code Review about 2 years 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
Updated by Gerrit Code Review about 2 years 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
Updated by Gerrit Code Review about 2 years 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
Updated by Gerrit Code Review about 2 years 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
Updated by Gerrit Code Review about 2 years 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
Updated by Gerrit Code Review about 2 years 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
Updated by Gerrit Code Review about 2 years 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
Updated by Gerrit Code Review about 2 years 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
Updated by Gerrit Code Review about 2 years 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
Updated by Gerrit Code Review over 1 year 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
Updated by Sybille Peters about 1 year ago
- Related to Bug #28943: Pages under 'extendtosubpages' access are not viewable in view module. added
Updated by Gerrit Code Review about 1 year 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
Updated by Sybille Peters about 1 year 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.
Updated by Riccardo De Contardi 6 months ago
I can confirm Sybille's results on TYPO3 11,12,13
I repeated both tests:
https://forge.typo3.org/issues/87392#note-3
https://forge.typo3.org/issues/87392#note-4
On TYPO3 11,12,13
Results:¶
The issue still affects TYPO3 11, but not 12 and 13
Updated by Riccardo De Contardi 6 months ago
- Status changed from Under Review to Closed
As TYPO3 11 is in "priority bugfix" mode I am closing this issue for now
If you think that this is the wrong decision please reopen it or open a new issue with a reference to this one. Thank you.
Updated by Gerrit Code Review about 1 month ago
- Status changed from Closed to Under Review
Patch set 12 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