77638[TASK] Avoid backend.user request attribute
Commit message
Review
-
Code review CR +2 Done
- Christian Kuhn +2
- Stefan Bürk +1
- Benni Mack +1
-
Verified V +2 Done
- Christian Kuhn +2
- Stefan Bürk +1
- Benni Mack +1
- core-ci +1 CI
Issues 1
Files 6
- typo3/sysext/core/Classes/FormProtection/FormProtectionFactory.php+4 −4
- typo3/sysext/core/Tests/Unit/FormProtection/FormProtectionFactoryTest.php+3 −7
- typo3/sysext/reactions/Classes/Http/ReactionHandler.php+1 −1
- typo3/sysext/reactions/Classes/Reaction/CreateRecordReaction.php+7 −2
- typo3/sysext/reactions/Tests/Functional/Reaction/CreateRecordReactionTest.php+1 −5
- .phpstorm.meta.php+0 −4
Review log 1012
-
Christian Kuhn uploaded patch set 1 01/30/23, 14:33
-
Christian Kuhn updated the commit message in patch set 2 01/30/23, 14:33
-
Christian Kuhn updated the commit message in patch set 3 01/30/23, 14:35
-
core-ci voted on patch set 3 V -1 01/30/23, 14:54 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/36772
-
Benjamin Franzke commented on patch set 3 CR -2 01/30/23, 16:23
This is a breaking change. What's the issue at all? It's just a reference, but a better one than $GLOBALS. Feel free to refactor BackendUser to optimize it. The backend user information is really a attribute of the request (very important for subrequests). Please do not remove it without a real substitude. -
Christian Kuhn commented on patch set 3 01/30/23, 16:43
Reply
Well, I had this discussion with Benni as well: I wanted to add the BackendUserAuthentication object as backen.user attribute to request already, but Benni never wanted to have this. Instead, he wants to get the context aspect elevated to carry needed information, which is always available and does not depend on request scope. I understand and support this reasoning. As such, ext:reactions is the first one that introduced this. I agree with Benni this should be avoided. The reactions feature came with 12.1, so Benni said its not heavily breaking when we adapt details of the implementation with 12.2. I share this view. -
Benjamin Franzke commented on patch set 3 CR 0 01/30/23, 18:45
Reply
Sorry, i totally confused backend.user/frontend.user with the frontend.controller attribute (don't know how). Then better remove it now, as long as it not fully integrated in all placed 👍 Thanks for the clarification. -
core-ci voted on patch set 3 V +1 01/31/23, 10:49 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/36772
-
Benni Mack voted on patch set 3 V +1 CR +1 02/01/23, 15:41
-
Stefan Bürk voted on patch set 3 V +1 CR +1 02/01/23, 17:07
-
Christian Kuhn voted on patch set 3 V +2 CR +2 02/01/23, 17:49
-
Christian Kuhn merged patch set 4 02/01/23, 17:49