Issue Bug Closed

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

S P 02/19/21, 08:20 updated 09/07/21, 07:35

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

Reviews 3