Uploaded image for project: 'Bloomreach Forge'
  1. Bloomreach Forge
  2. FORGE-73

RedirectComponent redirects twice, gives error

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bleunis Bert Leunis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: