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 #1

Updated by Tymoteusz Motylewski over 4 years ago

  • Category set to DataHandler aka TCEmain
Actions #2

Updated by Georg Ringer over 4 years ago

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

Also available in: Atom PDF