Project

General

Profile

Actions

Bug #93549

closed

DataHandler unusable in CLI (Symfony) mode because FlashMessages using session data

Added by S P almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2021-02-19
Due date:
% Done:

100%

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

Description

Using the DataHandler in CLI mode does not reliably work because on some validation errors it generates FlashMessages with $storeInSession = true, an example being checkValue_input_ValidateEmail() (called by 'eval' => 'email' ). The CLI has no session, even when \TYPO3\CMS\Core\Core\Bootstrap::initializeBackendAuthentication(); was called.

So the DataHandler in CLI only works if the input data is fully pre-sanitized, defeating the main purpose of using the DataHandler at all.

Discovered in v9, probably valid for v10+ as well.

See also #86877


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #86877: refindex:update does not work in CLI-ContextClosed2018-11-07

Actions
Actions

Also available in: Atom PDF