Community   SpringSource   Projects    Downloads    Documentation    Forums    Training   Exchange   Blogs

Go Back   Spring Community Forums > Core Spring Projects > Spring Web Flow

Reply
 
Thread Tools Display Modes
  #1  
Old Feb 12th, 2007, 01:52 PM
klr8 klr8 is offline
Senior Member
Spring Team
 
Join Date: Sep 2004
Location: Leuven, Belgium
Posts: 1,846
Default Tip: Understanding alwaysRedirectOnPause

This thread discusses the "Understanding alwaysRedirectOnPause" tip published on the Ervacon Spring Web Flow Portal.

Read the tip at

http://www.ervacon.com/products/swf/tips/tip4.html
Reply With Quote
  #2  
Old Feb 12th, 2007, 01:54 PM
Keith Donald's Avatar
Keith Donald Keith Donald is offline
Web Flow Project Lead
Spring Team
 
Join Date: Aug 2004
Location: Melbourne, FL
Posts: 2,490
Default

This is a definite must read tip for all SWF users!

Keith
__________________
Keith Donald
Spring Web Flow Project Lead
Reply With Quote
  #3  
Old Feb 18th, 2007, 02:31 AM
ojs ojs is offline
Senior Member
 
Join Date: Jul 2005
Location: Munich, Germany
Posts: 153
Default

Thank's for this great article! One thing I'm missing a bit is how to handle security in a redirectOnPause world. I'm using REST-style URLs (by using the RequestPathFlowExecutorArgumentHandler as the argumentHandler for the FlowController) to be able to secure them in my acegi access configuration. When enabling redirectOnPause, SWF redirects to an URL which isn't specific to a certain flow anymore. Is there a way to handle that (without a special security interceptor)?
Reply With Quote
  #4  
Old Feb 18th, 2007, 05:00 AM
klr8 klr8 is offline
Senior Member
Spring Team
 
Join Date: Sep 2004
Location: Leuven, Belgium
Posts: 1,846
Default

Interesting question. One thing you can do is serve your flows requiring different security using a different flow controller (and a different path). You can have multiple flow controllers 'fronting' a single flow definition registry.

Erwin
Reply With Quote
  #5  
Old Feb 20th, 2007, 10:31 AM
ojs ojs is offline
Senior Member
 
Join Date: Jul 2005
Location: Munich, Germany
Posts: 153
Default

Quote:
Originally Posted by klr8 View Post
Interesting question. One thing you can do is serve your flows requiring different security using a different flow controller (and a different path). You can have multiple flow controllers 'fronting' a single flow definition registry.
I'd like to have only one flow controller. What is the format of the URL, SWF redirects to? Currently my http://domain/flow/myFlowId is redirected to http://domain/flow/k/[UUIDs].

Is /k/ always prefix'ed, or what is /k/? Is the prefix configurable? Nobody would be able to guess guess the UUIDs, so I could probably give access to everyone below /k/ ?


Best

Oliver
Reply With Quote
  #6  
Old Feb 20th, 2007, 10:35 AM
klr8 klr8 is offline
Senior Member
Spring Team
 
Join Date: Sep 2004
Location: Leuven, Belgium
Posts: 1,846
Default

The /k/ is just a delimiter used to mark the start of the flow execution key. Check the source code of the RequestPathFlowExecutorArgumentHandler for details. The 'k' is configurable using the keyDelimiter property.

Erwin
Reply With Quote
  #7  
Old Feb 20th, 2007, 11:00 AM
ojs ojs is offline
Senior Member
 
Join Date: Jul 2005
Location: Munich, Germany
Posts: 153
Default

Quote:
Originally Posted by klr8 View Post
The /k/ is just a delimiter used to mark the start of the flow execution key.
So, it should be perfectly safe to grant access to everything starting with /k/ - right? Somebody would have to guess two UUIDs, which should be hard enough :-)


Best

Oliver
Reply With Quote
  #8  
Old Mar 8th, 2007, 08:59 AM
calebphillips calebphillips is offline
Member
 
Join Date: Jan 2006
Location: Nashville, TN
Posts: 34
Default Thanks

Just wanted to say thanks, because I was wanting to make the transition to using alwaysRedirectOnPause and this document was exactly what I needed. I would agree that this is required reading.
Reply With Quote
  #9  
Old Jun 6th, 2008, 06:04 AM
Sudheesh Sudheesh is offline
Member
 
Join Date: May 2008
Posts: 75
Smile

Hi ,

Am using SWF 2.0.1

I have following configuration

<webflow:flow-executor id="flowExecutor">
<webflow:flow-execution-attributes>
<webflow:always-redirect-on-pause value="false"/>
</webflow:flow-execution-attributes>
</webflow:flow-executor>


Now its not working


But if I use <webflow:always-redirect-on-pause value="true"/>

My transitions are working



What could be the reason?

Any help is greatly appreciated.


Thanks In Advance,
Sudheesh
Reply With Quote
  #10  
Old Jan 2nd, 2009, 07:47 PM
Bopo Bopo is offline
Junior Member
 
Join Date: Jan 2009
Posts: 1
Default

Great post, that information really helped me out .


___________________________
My website - dedicated to information about African Grey Parrots and also other species of parrots.

Last edited by Bopo; Jan 6th, 2009 at 07:27 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:07 AM.


Contegix provides first-class managed hosting and partial sponsorship of these forums.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.