Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
hippo-utilities-2.0.0
Description
The org.onehippo.forge.utilities.hst.component.RedirectComponent can redirect the request to a different URL. If the component parameters also contain a "type", it can be a response redirect or a component redirect. If a type is given, the RedirectComponent actually calls response#redirect twice. Which is illegal:
java.lang.IllegalStateException: Response is already committed at org.hippoecm.hst.core.component.HstServletResponseState.failIfCommitted(HstServletResponseState.java:193)
If a type parameter is given, the redirect should only be called once.