84432[BUGFIX] Properly redirect secondary backend module routes
Commit message
Review
-
Code review CR +2 Done
- Benjamin Franzke +2
- Benni Mack +1
-
Verified V +2 Done
- Benjamin Franzke +2
- Benni Mack +1
- core-ci +1 CI
Issues 1
Files 1
Review log 1417
-
Daniel Siepmann uploaded patch set 1 05/28/24, 05:37
-
core-ci voted on patch set 1 V +1 05/28/24, 05:44 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/58377
-
Oliver Klee commented on patch set 1 05/28/24, 08:52
Can we cover this with a test? -
Oliver Klee wrote 08/25/24, 10:11
Removed cc Oliver Klee. -
Benjamin Franzke uploaded patch set 2
V +108/27/24, 07:32 -
Benjamin Franzke commented on patch set 2 08/27/24, 07:32
Reply
not right now. -
core-ci voted on patch set 2 V +1 08/27/24, 07:37 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/64276
-
Oli Bartsch commented on patch set 2 CR -1 08/28/24, 13:40
BackendController.php:286Do we need to use the module identifier here and in line 289 as well? -
Benjamin Franzke commented on patch set 2 08/29/24, 06:51
BackendController.php:286ReplyHm, in theory yes, but I'm unable to actually trigger this codepath, because `BackendModuleValidator::validateModuleAccess` is also/already checking that and creating a redirect early on. Kinda looks like dead code. Do you know how to trigger this? (we should change it anyway, but I'd feel more confident with backporting, if we could actually test this) -
Benjamin Franzke uploaded patch set 3
CR +1V +108/29/24, 07:00 -
Benjamin Franzke commented on patch set 3 08/29/24, 07:00
BackendController.php:286ReplyI'm pretty sure this has been broken all the time, because the redirect message in actually wrong (arguments have been swapped) if created by the backend controller. (I could only verifiy that by disabling the backend module validator middleware – so I still think that this is dead code that should be removed at least in v13) -
Benjamin Franzke commented on patch set 3 08/29/24, 07:01
BackendController.php:333I've fixed this as a drive-by, since otherwise the changes in line 289 are not properly testable (and this can only be triggered by deactivating the validation in the BackendModuleValidator middleware) -
core-ci voted on patch set 3 V +1 08/29/24, 07:15 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/64457
-
Benjamin Franzke commented on patch set 3 08/29/24, 08:28
BackendController.php:286ReplyDone -
Benni Mack voted on patch set 3 CR +1 V +1 08/29/24, 19:53
-
Benjamin Franzke voted on patch set 3 CR +2 V +2 08/30/24, 08:28
-
Benjamin Franzke merged patch set 4 08/30/24, 08:52