Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-1852

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 2.22.02
    • 2.22.06, 2.23.05
    • None
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: