Project

General

Profile

Actions

Bug #90963

closed

History throws error for logged in user when it contains a deleted page

Added by Patrick Broens over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Must have
Category:
Backend API
Target version:
-
Start date:
2020-04-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

When a logged in backend user is entering the history/undo functionality for a certain page which contains a deleted page, the backend user authentication will throw the error "The given page record is invalid. Missing uid.", with code 1578950324.

This is due to the fact in RecordHistory only the deleted field is fetched to decide if a page has been deleted. If the page is deleted (field deleted === 1), it wants to copy the field pid - which has not been fetched, in the uid field of the deleted record. Since pid is null, the uid will also be null.

It will then try to calculate the page access on a record where the uid is null, which triggers the error.

Actions

Also available in: Atom PDF