Announcement Announcement Module
No announcement yet.
end-state HTTPS externalRedirect Fails Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • end-state HTTPS externalRedirect Fails

    I am attempting to redirect to a flow from an end-state going from HTTP to HTTPS and Web Flow (2.2.1.RELEASE) keeps redirecting to back to HTTP.

    Here is the scenario...
    1. User requests http://localhost:8080/app/
    2. User clicks a button to submit a form
    3. Flow transitions to an end-state
      <end-state id="secure" view="externalRedirect:https://localhost:8443/app/" />
    4. Web Flow submits the redirect to HTTPS but submits a second redirect back to HTTP resulting in the user remaining at HTTP.

    Here is what I have tried and all have failed.
    1. Redirecting to an Spring MVC controller to invalidate the session and sendRedirect
      <end-state id="secure" view="redirect:/controller/" />
    2. Implementing a Custom Flow Handler and overridding the handleExecutionOutcome. I tried the following return values and all have produced the same result.
    3. Redirecting to the same webflow just renamed (e.g. myflow.xml == securemyflow.xml)
      <end-state id="secure" view="externalRedirect:https://localhost:8443/app/" />

    Does anyone know how to end a web flow so it does not send a redirect back to itself? Note I am not using Spring Security so I do not want to setup the ChannelProcessingFilter and this works with Spring MVC but not with Spring Web Flow.

    Last edited by triley; Feb 23rd, 2011, 12:46 PM.

  • #2
    Is this thread related ?