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

Provide setter to modify redirect status code in FlowHandlerAdapter

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.4.0.M1
    • Labels:

      Description

      In org.springframework.webflow.mvc.servlet.FlowHandlerAdapter there is the property redirectHttp10Compatible which decide if the redirect is sent with a 302 or a 303 status code.
      Shouldn't we rather use the request http protocol version rather than a static property ? We send the response corresponding to the request.

      I'm here because I was testing my flow on a Http/1.1 client and it didn't redirect properly because the server was sending a 302 status code after a POST. Setting the redirectHttp10Compatible property to false solved the problem but now it's not compatible with Http/1.0 clients.

      I'm not sure if it's a Spring WebFlow issue or just a Spring Web issue.

        Attachments

          Activity

            People

            Assignee:
            rstoya05-aop Rossen Stoyanchev
            Reporter:
            ghetolay ghetolay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5d
                0.5d
                Remaining:
                Remaining Estimate - 0.5d
                0.5d
                Logged:
                Time Spent - Not Specified
                Not Specified