Actions
Bug #93549
closedDataHandler unusable in CLI (Symfony) mode because FlashMessages using session data
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
Actions