Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1385

servletRelative redirects don't work with default-servlet-handler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2.0.RC1
    • Component/s: None
    • Labels:
      None

      Description

      When using the default-servlet-handler element from Spring 3.0.4 and later (and thus mapping the DispatcherServlet to the default servlet), servletRelative redirects on an end state do not work as expected.

      For example, if I have an end state in the "rewards/newReward" flow defined like so:
      <end-state id="rewardConfirmed" view="externalRedirect:servletRelative:/rewards/1" />

      This will not redirect to /rewards/1 as expected. Instead, it redirects to /rewards/newReward/rewards/1.

      It's worth noting that as a workaround, a contextRelative redirect works fine.

        Attachments

          Activity

            People

            Assignee:
            rstoya05-aop Rossen Stoyanchev
            Reporter:
            dbrinker Don Brinker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: