Review main Ready for review

97900[FEATURE] Configure the public URLs of file storages

Benni Mack CR 0 V 0 Hard +604 −35 updated 11/25/26, 09:53

Commit message

Flysystem based storages now generate their public URLs with a
Flysystem PublicUrlGenerator, which is passed to the Filesystem
and selected with the driver option "publicUrl":

* "prefix" (default) publishes the files below "baseUri" with
  URL-encoded path segments, the URLs of existing storages do
  not change. LocalDriver uses it instead of its own
  getPublicUrl().
* "adapter" takes the URLs from the adapter, for example the
  AWS S3 one, which needs to be configured, as such adapters
  generate URLs for private buckets as well.

PublicUrlResolverInterface is the reverse of a generator and maps
a requested URI back to the path it was generated for, the prefix
generator implements it. ResourceStorage->resolvePublicUrl()
returns the identifier of the file or folder a URI is the public
URL of, which allows to handle requests for missing files and to
deliver files of protected storages later on.

The public URL of a storage stays independent of the request, the
system resource publisher renders it for the request. On the
command line, the publisher no longer prefixes a public URL that
is absolute already, which resulted in URLs like "/https://...".
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/00/97900/3 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/00/97900/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 Based on this change Benni Mack → main Hard +632 −0 CR 0 V 0
  3. 97900 [FEATURE] Configure the public URLs of file storages This change

Merge conflicts 8

Issues 3

Files 14

Review log 36

  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, 20:01 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115198

  3. Benni Mack uploaded patch set 2 V +1 11/25/26, 09:16

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

  5. Benni Mack uploaded patch set 3 V +1 11/25/26, 09:40

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