Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Work in progress Quiet Breaking

96941[!!!][FEATURE] Run Extbase action invocation through a middleware stack

Alexander Schnitzler CR 0 V 0 Expert +1050 −147 updated 11/04/26, 10:12

Commit message

After argument mapping, ActionController::callActionMethod() handles
validation errors, #[Authorize] and #[RateLimit] in fixed code.
Extensions cannot hook in there with access to the mapped arguments,
and the checks themselves are no extension points.

The controller now hands over an ActionInvocation to the new
middleware stack "extbase-action". The invocation carries the
controller, the action, the arguments, the prepared argument values
and closures for the action and the error action, so protected
methods keep working. TYPO3 Core registers argument validation,
authorization and rate limiting as middlewares in the order used so
far: a rate limit is still not consumed when validation fails. The
innermost handler dispatches BeforeActionCallEvent and calls the
action.

The methods and properties of ActionController that implemented
authorization and rate limiting are removed. An event dispatcher
injected into a single controller instance no longer receives the
events dispatched by the stack.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 4
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/41/96941/4 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/41/96941/4 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Relation chain 2

  1. 96941 [!!!][FEATURE] Run Extbase action invocation through a middleware stack This change

  2. main 96940[FEATURE] Dispatch Extbase actions through a PSR-15 middleware stack This change is based on it Alexander Schnitzler CR 0 V +1 extbase Expert +1174 −36

Issues 2

Files 19

Review log 48

  1. Alexander Schnitzler uploaded patch set 1 10/20/26, 15:59

  2. core-ci voted on patch set 1 V +1 10/20/26, 16:13 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111880

  3. Matthias Vogel uploaded patch set 2 V +1 10/23/26, 10:45

  4. core-ci voted on patch set 2 V +1 10/23/26, 11:06 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112273

  5. Alexander Schnitzler uploaded patch set 3 V +1 11/04/26, 08:55

  6. core-ci voted on patch set 3 V +1 11/04/26, 09:10 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113263

  7. Alexander Schnitzler uploaded patch set 4 V +1 11/04/26, 10:01

  8. core-ci voted on patch set 4 V +1 11/04/26, 10:12 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113269