Ok, I had fun over at the Web Flow
forums<http://forum.springframework.org/showthread.php?t=32898>and
basically for some odd reason I get either a String or a String[]
from
externalContext.requestParameterMap['service'] , viewing the debugged logs:
The Array version:
requestParameterMap = map[ ....,
'service'->array<String>['
https://blahblah/j_acegi_cas_security_check;jsessionid=abcgFRQ7mmvUF4Tu3Nf-q',
'https%3A%2F%2Fblahblah%2FProject%2Fj_acegi_cas_security_check'], 'username'
-> ...
and the String version:
requestParameterMap = map['service' -> '
https://blahblah/Project/j_acegi_cas_security_check']], requestScope =
map['ticket' ->
so this is the voodoo I came up with for now in login-webflow.xml to make
things redirect again after a successful authentication:
<end-state id="redirect"
view="externalRedirect:${
externalContext.requestParameterMap['service'].getClass().isArray() ?
externalContext.requestParameterMap['service'][0] :
externalContext.requestParameterMap['service']
}${requestScope.ticket == null ? '' :
(
(externalContext.requestParameterMap['service'].getClass().isArray() ?
externalContext.requestParameterMap['service'][0].indexOf('?')
: externalContext.requestParameterMap['service'].indexOf('?')
)
!= -1 ? '&' : '?') + 'ticket=' + requestScope.ticket}"
/>
P.S. I learned way to much about Spring Web flow.
On 12/21/06, Vinny <[EMAIL PROTECTED]> wrote:
Actually I think this most recent issue is being triggered by the
"indexOf" in this line in login-webflow.xml on the server:
<end-state id="redirect"
view="externalRedirect:${ externalContext.requestParameterMap
['service']}${requestScope.ticket == null ? '' : (
externalContext.requestParameterMap['service'].indexOf('?') != -1 ?
'&' : '?') + 'ticket=' + requestScope.ticket}" />
The exception I am getting is :
>
>
--
Ghetto Java: http://www.ghettojava.com
--
Ghetto Java: http://www.ghettojava.com
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas