Bug #102700
closed'Undefined array key "uid" 'in FileDeletionAspect::cleanupCategoryReferences()
100%
Description
In FileDeletionAspect::cleanupCategoryReferences() there is the Null Coalescing operator used for not accessing the possibly not existing key '_ORIG_uid', and uses instead 'uid'. But the latter might also not have been set.
// Retrieve the file metadata uid which is different from the file uid. $metadataProperties = $fileObject->getMetaData()->get(); $metaDataUid = $metadataProperties['_ORIG_uid'] ?? $metadataProperties['uid'];
Updated by Gerrit Code Review 11 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/+/82262
Updated by Gerrit Code Review 11 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/+/82262
Updated by Gerrit Code Review 11 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/+/82247
Updated by Oliver Bartsch 11 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 41309a8ef2db5ec43c784adb511a7e171eb65616.