Project

General

Profile

Actions

Bug #102700

closed

'Undefined array key "uid" 'in FileDeletionAspect::cleanupCategoryReferences()

Added by Julian Hofmann 11 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2023-12-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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'];
Actions

Also available in: Atom PDF