Issue Bug Resolved

#110333File metadata translations are not resolved outside the frontend

Benni Mack 07/30/26, 12:27 updated 10/02/26, 13:40

Description

Metadata of a file (sys_file_metadata) is read in the default language by TYPO3\CMS\Core\Resource\Index\MetaDataRepository::findByFileUid(). The translation
is applied afterwards by the event listener TYPO3\CMS\Frontend\Aspect\FileMetadataOverlayAspect, which starts with:

if (!($GLOBALS[‘TYPO3_REQUEST’] ?? null) instanceof ServerRequestInterface
    || !ApplicationType::fromRequest($GLOBALS[‘TYPO3_REQUEST’])->isFrontend()
    || isset($_REQUEST[‘eID’])
) {
return;
}

The language of a metadata record is therefore only ever resolved in a frontend request. In the backend, in command controllers and in eID requests the default
language record is used, even when the language aspect of the context says otherwise.

Reviews 3

History 38

  1. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-02T13:40:10+00:00" > 10/02/26, 13:40 </span>

    Applied in changeset commit:6d6c12734a0b8ed0d7bb6d7c75071bc8c7b177d8.