Bug #101730
closedMissing last_indexed entry on initial file upload
100%
Description
The createIndexEntry function in TYPO3\CMS\Core\Resource\Index\Indexer does not update the last_indexed column in the sys_file table after processing an uploaded file. This leads to a loss of edited metadata while the index is updated (e.g. executed by the scheduler task /typo3/sysext/scheduler/Classes/Task/FileStorageIndexingTask.php), since the file is considered as unindexed. The result is: The original metadata is extracted from the file again and used to overwrite the edited metadata.
Adding
$this->getFileIndexRepository()->updateIndexingTime($fileObject->getUid());
after Line 90 in the Indexer.php
$fileObject->getMetaData()->add($metaData)->save();
fixes the issue.
Updated by Gerrit Code Review 8 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80973
Updated by Gerrit Code Review 8 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80973
Updated by Gerrit Code Review 8 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/80973
Updated by Gerrit Code Review 8 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81056
Updated by Gerrit Code Review 8 months ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81057
Updated by Georg Ringer 8 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 5893f2cb74a0164dbb3b3bb2daf93a9b4d58a800.