intercept flow leads to java.lang.StackOverflowError
Cantor, Scott
cantor.2 at osu.edu
Fri Jan 15 09:58:36 EST 2016
On 1/15/16, 9:11 AM, "dev on behalf of Scott Koranda" <dev-bounces at shibboleth.net on behalf of skoranda at gmail.com> wrote:
>I have a simple intercept flow that I configured for a
>particular relying party. It uses the
>
>net.shibboleth.idp.profile.logic.SimpleAttributePredicate
>
>to check for a particular value of an attribute and if found
>it should diplay a custom error page and the flow should stop
>(no response to the SP).
For clarification, are you building your own flow for just educational/future purposes or some other reason (maybe you need multiple different conditions in different cases and don't want to bundle it all into one big Spring wiring mess)?
Just asking because that's basically what the context-check flow I included does.
>The simple flow is
>
><decision-state id="MyTest">
> <if test="MyTest.apply(opensamlProfileRequestContext)" then="MyEvent" else="proceed" />
></decision-state>
>
><action-state id="MyEvent">
> <evaluate expression="'MyEvent'"/>
></action-state>
No, that's recursive (the evaluate expression is telling it to repeat that same action-state).
What you want is an <end-state>, but you will need to put that <end-state> into conf/intercept/intercept-events-flow.xml and make sure your flow inherits from intercept.abstract.
-- Scott
More information about the dev
mailing list