Bug #92068

Epic #92636: felogin bug collection

felogin redirect from GET/POST is not working properly

Added by DANIEL Rémy 3 months ago. Updated about 1 month ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
felogin
Target version:
-
Start date:
2020-08-21
Due date:
% Done:

0%

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

Description

Take a felogin form (the new one of TYPO3 v10 made with Extbase)
Add it to a /login page with the following flexform settings:

Redirect modes:
- Defined by GET/POST parameter
- After login
Check "Use First Supported Mode from Selection"
Set a page from your page tree in "After Successful Login Redirect to Page"

With those settings, I expect two things:

A. I access directly the /login page, I should see the login form.
Then I log in and I should be redirected to the page set in "After Successful Login Redirect to Page"

B. I access a restricted page /private-page with a non logged-in user.
Now TYPO3 should trigger a 403 error, and my custom PageErrorHandler should redirect me to /login?redirect_url=/private-page
Now I should see the login form.
Then I log in, and should be redirected to /private-page

On TYPO3 v10.4.6, the scenario B is not working.
The ?redirect_url=/private-page GET parameter is not propagated to the <input hidden name="redirect_url">,
so the redirect_url is lost when the form is posted.

This scenario used to work with the pi_base version in v9.


Files

fe_login-debug.jpg (65.4 KB) fe_login-debug.jpg Simone Hamm, 2020-09-11 12:14
#1

Updated by Oliver Hader 3 months ago

  • Status changed from New to Needs Feedback
#2

Updated by DANIEL Rémy 3 months ago

This option typolinkLinkAccessRestrictedPages does not influence the way felogin handle the return_url/redirect_url GET parameter.
It just allows typolink to link access restricted page with the add of the return_url/redirect_url GET parameter.

The bug I describe resides in felogin and is a regression introduced with the extbase refactoring of the plugin.

#3

Updated by Simone Hamm 3 months ago

I have exactly the same configuration with the same problem. In v9 everything works fine.
Attached is a screenshot of the debug output.

#4

Updated by Markus Klein about 1 month ago

  • Parent task set to #92636

Also available in: Atom PDF