Bug #91143

Datahandler should check return value of checkStoredRecord

Added by Tymoteusz Motylewski 3 months ago. Updated 3 months ago.

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

0%

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,

History

#1 Updated by Tymoteusz Motylewski 3 months ago

  • Category set to DataHandler aka TCEmain

#2 Updated by Georg Ringer 3 months ago

  • Subject changed from Datahanlder should check return value of checkStoredRecord to Datahandler should check return value of checkStoredRecord

Also available in: Atom PDF