Project

General

Profile

Actions

Bug #91143

open

Datahandler should check return value of checkStoredRecord

Added by Tymoteusz Motylewski over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2020-04-20
Due date:
% Done:

0%

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

Description

In datahandler isertDB the return value of checkStoredRecord is not being checked (if it's null or array) which then results in calling

$this->getRecordHistoryStore()->addRecord($table, $id, $newRow);

with a wrong type (null) for $newRow.

This causes error like:

Argument 3 passed to TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore::addRecord() must be of the type array, null given,

Actions

Also available in: Atom PDF