Project

General

Profile

Actions

Bug #95978

open

DataHandler does not catch errors in database query

Added by Jan Delius about 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2021-11-15
Due date:
% Done:

0%

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

Description

In the DataHandler, an attempt is made to catch a DBALException when inserting or updating an existing entry. This class is deprecated, the code itself states that you should use \Exception. If I replace the catch block in the PHP code, the errors are caught again when executing the database query and the DataHandler notices that there was an error.

Example error that should be catched:

[Doctrine\DBAL\Driver\Mysqli\Exception\StatementError]                       
  Incorrect integer value: '' for column `typo3`.`tx_myext_domain_model_mymodel`.`number` at row 1

Actions

Also available in: Atom PDF