Results 1 to 2 of 2

Thread: end-state HTTPS externalRedirect Fails

  1. #1
    Join Date
    Sep 2005
    Posts
    13

    Default 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/myflow.do
    2. User clicks a button to submit a form
    3. Flow transitions to an end-state
      Code:
      <end-state id="secure" view="externalRedirect:https://localhost:8443/app/myflow.do" />
    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
      Code:
      <end-state id="secure" view="redirect:/controller/redirect.do" />
    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)
      Code:
      <end-state id="secure" view="externalRedirect:https://localhost:8443/app/securemyflow.do" />


    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.

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

  2. #2
    Join Date
    Sep 2005
    Posts
    13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •