Project

General

Profile

Actions

Bug #91234

closed

History/Undo doesn't work when subpage has been deleted (as non-admin)

Added by Jahanbaba Mahilrasah over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-04-29
Due date:
% Done:

0%

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

Description

The history/undo buttom runs into the following error:

(1/1) #1578950324 RuntimeException
The given page record is invalid. Missing uid.

This can be reproduced by following these steps:

- Create page A
- Create page B as subpage to A
- Delete the subpage
- As a non-admin right click on page A and select history/undo

Some TYPO3 internal things:

[...]
at TYPO3\CMS\Backend\History\RecordHistory->createChangeLog()
at TYPO3\CMS\Backend\History\RecordHistory->getHistoryData('pages', 2226, true, null)
at TYPO3\CMS\Backend\History\RecordHistory->getHistoryDataForRecord('pages', 6909, null)
at TYPO3\CMS\Backend\History\RecordHistory->hasPageAccess('pages', 6909)
at TYPO3\CMS\Core\Authentication\BackendUserAuthentication->doesUserHaveAccess(array('deleted' => 1, 'uid' => null), 1)
at TYPO3\CMS\Core\Authentication\BackendUserAuthentication->calcPerms(array('deleted' => 1, 'uid' => null))
at TYPO3\CMS\Core\Authentication\BackendUserAuthentication->isInWebMount(array('deleted' => 1, 'uid' => null)) -> throw new \RuntimeException('The given page record is invalid. Missing uid.', 1578950324);

Actions

Also available in: Atom PDF