Project

General

Profile

Actions

Bug #105034

open

Using PropagateResponseException with a ForwardResponse

Added by Marcus Schwemer about 1 month ago. Updated 13 days ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2024-09-18
Due date:
% Done:

0%

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

Description

In an initializeAction I need to do some checks, whether the incoming data is correct. If it is not correct, I would like to forward it to some kind of default action on the same page.

Using the ForwardResponse the browser gets a 204 -- No content status and does nothing. The browser console logs the request and gives the status.

Switching to the RedirectResponse using any url redirects the browser to the configured target.

I would expect that the PropagateResponseException handles the forward like the return statement in an action.

An example is in https://github.com/in2code-de/powermail/commit/058d204f412a5cafa19b064da51c0a72ecc2caa7

Is this behavior intended or is it a bug?

Actions

Also available in: Atom PDF