Closed cweiske closed 9 months ago
Without this fix, the indexer task will set the sys_file.type in the TYPO3 database to 0, so the filetype specific fields in the backend are no longer available. This PR fixes that, so we backported it for our installation, and it works like a charm.
The TYPO3 indexer in
sysext/core/Classes/Resource/Index/Indexer.php#gatherFileInformationArray
calls "getFileInfoByIdentifier" with an empty "$propertiesToExtract" array, which means it wants to have all information.S3 driver did not yet return the mime type in that case, causing a crash:
So instead of only fetching the MIME type when it is explicitly requested, we also fetch it when no property has been given.
The error occured when a file was not in sys_file but already existed in storage - e.g. when the storage had been filled outside of TYPO3.