#110672Filelist "Create metadata of this file for X" fails for non-admin users ("No source languages available")
Description
Environment: TYPO3 14.3, Composer-based installation, 2 site languages configured (default + 1 additional), both enabled, no language restriction on the backend user group (“Limit to languages” empty).
Steps to reproduce:
Log in as a non-admin backend user with tables_modify permission on sys_file_metadata and edit rights on the relevant file mount.
Filelist module → open a folder containing a file that has no metadata translation yet for the additional language.
Click “Create metadata of this file for <language>“ in the per-file language dropdown.<br>The record localization wizard opens; step 2/6 “Select source language” always shows “No source languages available”, regardless of how many/which languages are configured.</language>
If the exact same steps are performed as an admin user, the wizard works correctly and creates the translation without issues.
Expected behavior: Non-admin editors with the correct table/file permissions should be able to create the first metadata translation for a file, same as admins.
Actual behavior: Only admin users can ever get past step 2 of the wizard for this action.
Root cause analysis:
sys_file_metadata records live at pid=0. The record localization wizard’s language-resolution step performs an implicit page-permission check against this pid. Since pid=0 is a pseudo-page that never has an explicit permission row and cannot be granted permissions through the normal page-permission UI, only admin users (who bypass all permission checks entirely) ever satisfy this check. A non-admin user can never be granted access to it, regardless of their language permissions, file mount, or table permissions.
Note that “Edit metadata of this file for <language>“ for an already existing translation works correctly for non-admins, since that action links directly to the FormEngine edit route (record_edit) rather than going through the localization wizard. So this is specifically about the wizard’s page-permission gate on pid=0, not a general sys_file_metadata ACL problem.</language>
Practical impact: on any multi-language TYPO3 site, non-admin editors can never create the first translation of a file’s metadata through the core Filelist UI — this has to be done by an admin, or worked around by creating the record programmatically (e.g. via a PSR-14 listener on AfterFileMetaDataCreatedEvent).
Related issues: #92906, #105824
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Filelist "Create metadata of this file for X" fails for non-admin users ("No source languages available") Resolves: #110672 Releases: main
Related issues 5
- Bug #92906File Metadata are not editable when translation doesn't exist yet
- Bug #105132Allow Editors to edit file reference of file metadata
- Feature #105824Should sys_file_metadata have a language overlay?
- Bug #106800Filelist offers to create new file metadata but the user does not have sufficient permission to create it
- Bug #109233LocalizationController doesn't allow translating records which are on rootlevel and translatable, e.g. sys_filemetadata