Issue Bug Closed

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

Julian Hofmann 12/19/23, 15:21 updated 07/09/24, 15:12

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

Reviews 2

History 25

  1. Gerrit Code Review pushed patch set 1 for main to change 82262 status New Under Review 12/20/23, 11:50

  2. Gerrit Code Review pushed patch set 2 for main to change 82262 12/20/23, 11:58

  3. Gerrit Code Review pushed patch set 1 for 12.4 to change 82247 12/21/23, 22:56

  4. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % 12/21/23, 23:10

    Applied in changeset commit:41309a8ef2db5ec43c784adb511a7e171eb65616.

  5. Benni Mack changed status Resolved Closed 07/09/24, 15:12