Uploaded image for project: 'Hippo Site Toolkit 2'
  1. Hippo Site Toolkit 2
  2. HSTTWO-1852

ContainerException when a post is performed from a site's homepage

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.22.02
    • Fix Version/s: 2.22.06, 2.23.05
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      Description

      Under the following circumstances we get a container exception reading "Can only redirect to a context relative path starting with a '/'.". And a 500 error of course.

      • Have showContextPath=false in your mount properties
      • Use a component in your homepage that posts to <hst:actionURL />. I used the poll component
      • perform a post request

      The post maybe successful, but the redirection fails with the container exception. Responsible for this is the check in org.hippoecm.hst.core.container.ActionValve, line 156. When we post from the home location, having showContextPath=false, the contextPath of the redirection url is empty and ActionValve throws the exception.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aschrijvers Ard Schrijvers
                Reporter:
                mchatzidakis Minos Chatzidakis
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: