Bug #87969
closedPage route for translated page is not generated correctly when page has frontend group access restrictions
100%
Description
The URI Builder fetches the slug field of the target page to generate the URI.
This works also for pages with frontend group access restrictions, because PageRepository::getPage is called with disableGroupCheck.
However when a translated page should be fetched, the disableGroupCheck argument is not pushed through the query which fetches the translation,
which leads to the situation that the translation is not found and the slug of the default language page is used. In the end this leads to a wrongly composed URL.
To reproduce:
- Create a page
- Translate the page to another language
- Add frontend group access restriction to page in default language
- Preview translated page (preview button of translated page)
Updated by Georg Ringer over 5 years ago
- Category set to Site Handling, Site Sets & Routing
- Status changed from New to Accepted
Updated by Gerrit Code Review over 5 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60326
Updated by Daniel Goerz over 5 years ago
- Related to Bug #86653: Preview of page, with "show", not working when starttime is set added
Updated by Gerrit Code Review over 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60326
Updated by Gerrit Code Review about 5 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60326
Updated by Christian Eßl over 4 years ago
- Related to Bug #90842: FE user restriction on pages and link incl. linkAccessRestrictedPages create wrong URLs added
Updated by Gerrit Code Review over 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63963
Updated by Christian Eßl over 4 years ago
- Has duplicate Bug #91045: Language overlay does not respect $disableGroupAccessCheck added
Updated by Jonas Eberle over 4 years ago
I cannot reproduce anymore in 9.5.15.
The preview link for the access restricted translated page is correct.
Updated by Jonas Eberle over 4 years ago
Oh, in a special case the bug still exists.
If the parent page is access restricted, too the preview link is wrong.
It is <language prefix of translated language>/<slug of default language>
Updated by Gerrit Code Review over 4 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63963
Updated by Gerrit Code Review over 4 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63963
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64359
Updated by Benni Mack over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 56269a975cb2d71bada701796f2c20f2fc68b86e.
Updated by Gerrit Code Review over 4 years ago
- Status changed from Resolved to Under Review
Patch set 2 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64359
Updated by Benni Mack over 4 years ago
- Status changed from Under Review to Resolved
Applied in changeset 4978699fe28f6c3a1f820ab2cf028e2ecce7f5b1.