Issue Feature Closed

#108483Pass raw request body to reaction

Francois Suter 12/13/25, 11:25 updated 12/13/25, 12:32

Description

Currently the payload received by the reaction handler is parsed as JSON. If it is not JSON, an empty array is passed to the reaction. The idea is to pass the raw payload/request body to the reaction, so that any type of format can be handled, although it would be up to each reaction developer to do the proper handling (parsing, sanitizing, etc.).

This makes it a very simple change, but which opens up a lot of possibilities for sending information to TYPO3, while benefiting from the secure communication developed for reactions.

My personal use case is to be able to receive XML from a third-party application.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 2

  1. Francois Suter commented <span data-processor="relativetime" data-value="2025-12-13T12:15:34+00:00" > 12/13/25, 12:15 </span>

    Forget about it. When I looked twice at the code to implement the feature, I realized that it was already possible to get the raw request body from withing the reaction since it receives the request. I was too focused on the call to \TYPO3\CMS\Reactions\Http\ReactionHandler::getPayload() and its return of an empty array.

  2. Oliver Hader commented and changed status New Closed <span data-processor="relativetime" data-value="2025-12-13T12:32:21+00:00" > 12/13/25, 12:32 </span>

    Closing this issue as requested.