Review main Ready for review

97901[FEATURE] Answer requests for missing storage files

Benni Mack CR 0 V 0 Hard +632 −0 updated 11/25/26, 09:49

Commit message

When the web server hands requests for missing files of a file
storage to TYPO3, they ended up in the page resolution. With a
language base like "/en/" they were even answered by the full
page-not-found handling, and a redirect for a removed file was
the only useful outcome.

The new frontend middleware "storage-file-resolver" maps the
requested URL to a file or folder of an online public storage
with ResourceStorage->resolvePublicUrl(), including a baseUri on
the same host and nested storages. A missing one is answered
with an empty 404 response before the language base redirect,
but after the redirects of EXT:redirects, so these keep working.

The PSR-14 event RequestedFileNotFoundEvent allows to provide a
different response.

The default .htaccess still excludes fileadmin/ as decided in
v14 with issue #105244, the changelog describes how to opt in.
Show more Show less

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 3
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/01/97901/3 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/01/97901/3 && 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 3

  1. 98006[!!!][TASK] Prefix public URLs of files without event listeners Based on this change Benni Mack → main Hard +482 −265 CR 0 V 0 Work in progress Merge conflict
  2. 97901 [FEATURE] Answer requests for missing storage files This change

  3. 97900[FEATURE] Configure the public URLs of file storages This change is based on it Benni Mack → main Hard +604 −35 CR 0 V 0

Merge conflicts 5

Issues 2

Files 10

Review log 47

  1. Benni Mack uploaded patch set 1 11/23/26, 19:50

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

  3. Georg Ringer voted on patch set 1 CR +1 V +1 11/23/26, 21:48

  4. Benni Mack rebased onto patch set 2 CR +1 V +1 11/25/26, 09:16

  5. core-ci voted on patch set 2 V +1 11/25/26, 09:31 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115387

  6. Benni Mack rebased onto patch set 3 V +1 11/25/26, 09:40

  7. core-ci voted on patch set 3 V +1 11/25/26, 09:49 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115393