Issue Bug Closed

#105034Using PropagateResponseException with a ForwardResponse

Marcus Schwemer 09/18/24, 18:35 updated 12/22/24, 22:44

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?

Reviews 0

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