Project

General

Profile

Actions

Bug #91879

closed

Redirecting a logged out user to an access restricted page via t3 link does not handle it as 403 but as 404

Added by S P over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2020-07-28
Due date:
% Done:

100%

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

Description

Example:

Having the redirect directly to www.domain.example/my/restricted/page.html goes do this page and runs the 403 error handler (it is configured to show a page where the felogin plugin is in my case)

Having the redirect configured to t3://page?uid=1234 (where 1234 is the uid of this exact page) the redirect just ends with 404.

Creating a redirect in the redirects module to an access restricted page via t3 link should handle it as 403 instead, currently it handles it as 404.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #91892: linkAccessRestrictedPages (typolink setting) should only be considered when building link tags, not when building URIsNew2020-07-29

Actions
Actions #1

Updated by S P over 4 years ago

  • Subject changed from Redirecting a logged out user to a access restricted page via t3 link does not handle it as 403 but as 404 to Redirecting a logged out user to an access restricted page via t3 link does not handle it as 403 but as 404
Actions #2

Updated by S P over 4 years ago

It should be enough to add this

'linkAccessRestrictedPages' => true

in

RedirectService::getUriFromCustomLinkDetails()

Actions #3

Updated by S P over 4 years ago

  • Related to Bug #91892: linkAccessRestrictedPages (typolink setting) should only be considered when building link tags, not when building URIs added
Actions #4

Updated by Oliver Schmidt over 4 years ago

We ran into the same issue. We are using the redirects module to generate shourt urls. Want to use it for restricted pages, too but that didn't worked.

Actions #5

Updated by Markus Klein about 4 years ago

@Stefan P: Would you mind pushing a fix to Gerrit please if you already have a solution at hand?

Actions #6

Updated by Gerrit Code Review almost 4 years ago

  • Status changed from New 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/+/67498

Actions #7

Updated by Gerrit Code Review almost 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/+/67498

Actions #8

Updated by Gerrit Code Review almost 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/+/67498

Actions #9

Updated by Gerrit Code Review almost 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/+/67498

Actions #10

Updated by Gerrit Code Review almost 4 years ago

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

Actions #11

Updated by Gerrit Code Review almost 4 years ago

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

Actions #12

Updated by Gerrit Code Review almost 4 years ago

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

Actions #13

Updated by Oliver Bartsch almost 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #14

Updated by Gerrit Code Review almost 4 years ago

  • Status changed from Resolved to Under Review

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

Actions #15

Updated by Oliver Bartsch almost 4 years ago

  • Status changed from Under Review to Resolved
Actions #16

Updated by Benni Mack almost 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF