#92312sys_file_metadata.filelist is in TCA but not in SQL schema - may lead to exceptions
Description
System
- 9.5.20
- master (11-dev)
I had the problem in 9.5.20 but the same seems to apply for master
Sideeffects
If l10nmgr is installed and a non-admin edits the file metadata in the filelist, an exception may occur.
Oops, an error occurred!
An exception occurred while executing 'SELECT `crdate`, `sys_language_uid`, `l10n_parent`, `l10n_diffsource`, `t3ver_label`, `fileinfo`, `file`, `title`, `description`, `alternative`, `width`, `height`, `categories`, `visible`, `status`, `keywords`, `caption`, `creator_tool`, `download_name`, `creator`, `publisher`, `source`, `copyright`, `location_country`, `location_region`, `location_city`, `latitude`, `longitude`, `ranking`, `content_creation_date`, `content_modification_date`, `note`, `unit`, `duration`, `color_space`, `pages`, `language`, `fe_groups`, `t3_origuid`, `uid`, `pid`, `sys_language_uid`, `l10n_diffsource`, `l10n_parent` FROM `sys_file_metadata` WHERE (`uid` = ?) AND (`sys_language_uid` <= ?) AND ((`sys_file_metadata`.`t3ver_wsid` = 0) OR (`sys_file_metadata`.`t3ver_state` <= 0))' with params [162820, 0]: Unknown column 'fileinfo' in 'field list'
Because the extensions l10nmgr reads the fields from TCA and contructs the SQL query from that. If user is admin, it just uses “*”.
More info:
$ mysql -e "describe sys_file_metadata" t3coredev | grep fileinfo
no result.
- sys_file_metadata.filelist is defined in TCA (EXT:core)
- EXT:l10nmgr:\Localizationteam\L10nmgr\Model\Tools->getSingleRecordToTranslate() : DB query