Project

General

Profile

Actions

Bug #97280

closed

Recycler throws exception when deleting records permanently

Added by Christoph Erdmann about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Recycler
Target version:
-
Start date:
2022-04-01
Due date:
% Done:

100%

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

Description

As of TYPO3 11.5.8 the recycler is throwing an exception when deleting records permanently.

https://github.com/TYPO3/typo3/blob/v11.5.8/typo3/sysext/core/Classes/DataHandling/DataHandler.php#L4873

In the deletion process the records are fetched with $liveRecord = BackendUtility::getRecord($table, $uid);. But getRecord has the $useDeleteClause = true applied which leads to a null result as the recycler is working with already deleted records (deleted = 0).

Ultimately the access to the array keys of $liveRecord = null leads to an exception.

How to reproduce:

In TYPO3 11.5.8 create a content (i. e. in tt_content) and delete this record.
Call the recycler and permanently delete the record.

The AJAX action is cancelled with an error 500.


Files

recycler_01.jpg (204 KB) recycler_01.jpg Christoph Erdmann, 2022-04-01 05:43
Actions #1

Updated by Gerrit Code Review about 2 years 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/+/74154

Actions #2

Updated by Gerrit Code Review about 2 years 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/+/74136

Actions #3

Updated by Oliver Bartsch about 2 years ago

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

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF