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 #1

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

Actions #2

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

Actions #3

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

Actions #4

Updated by Oliver Bartsch 11 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF