#73076Publishing of changed sys_file_metadata fails because of missing config array for with and height fields
Description
Hello, I get the following error trying to publish changed metadata from any file:
PHP Catchable Fatal Error: Argument 3 passed to TYPO3\CMS\Version\Hook\DataHandlerHook::version_swap_processFields() must be of the type array, null given, called in /typo3/sysext/version/Classes/Hook/DataHandlerHook.php on line 905 and defined in /typo3/sysext/version/Classes/Hook/DataHandlerHook.php line 1048
I looked up the code and for all TCA-fields a config array is expected:
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/version/Classes/Hook/DataHandlerHook.php#L907
But there is no config for width and height in sys_file_metadata (without installing the filemetadata plugin):
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Configuration/TCA/sys_file_metadata.php#L126
I think the issue at least exists since version 6.2
Steps to reproduce:- Change metadata of arbitrary file with a simple editor on draft workspace, e.g. the title
- Go to the workspace module and send the changes to the next stage “ready to publish”
- With an admin, go to the workspace module and try to publish these changes