Review 14.3 Merged

96236[BUGFIX] Resolve file metadata again when the context changed

Benni Mack CR +2 V +2 Normal +160 −3 updated 09/30/26, 20:51

Commit message

The metadata of a file is resolved for the language and workspace
of the current context, but MetaDataAspect and FileReference keep
the resolved record for the lifetime of the object, while the
ResourceFactory keeps the objects themselves for the whole request
without any language in its cache identifier.

Whenever more than one language is rendered within a single process -
a command controller, a cache warmup, frontend sub-requests or an
Extbase query for a specific language - the language that happened to
be active first therefore wins, and every language after that receives
the metadata of that first one.

Both in-object caches are now rebuilt once the language, its fallback
chain or the workspace of the context changed.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 1

Files 7

Review log 34

  1. Benni Mack commented on patch set 1 09/30/26, 20:29

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 09/30/26, 20:41 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109702

  3. Benni Mack voted on patch set 1 CR +2 V +2 09/30/26, 20:51

  4. Benni Mack merged patch set 2 09/30/26, 20:51