ELException on IdP 4.0.1
Ramon Pfeiffer
ramon.pfeiffer at uni-tuebingen.de
Wed Nov 25 17:03:30 UTC 2020
On 25.11.2020 17:03, Cantor, Scott wrote:
> I think you scrambled up something in your configuration and supplied a Function as a bean that's a Predicate/Condition. That could have "worked but not worked" before because Guava's signature for both was apply() but in Java 8+ world, Predicate uses test and Function uses apply, so the code is calling test on a Function.
>
> It was wrong before, but must have been implicitly working well enough to pass notice by treating the Function result as a condition result I guess.
>
> I suspect maybe that's why Java used different methods. I hadn't realized before why that was done, but this is almost certainly why, you get a failure instead of silent incorrectness.
>
> -- Scott
>
>
Thanks Scott, that helped.
Changing the id of my interceptor bean from
"shibboleth.context-check.Condition" to
"shibboleth.context-check.Function" and returning "proceed" or
"ContextCheckDenied" as applicable resolved this issue.
For my understanding, is it possible to use an inline script for a
Condition that returns just a boolean value true or false?
Thanks again and best regards
Ramon Pfeiffer
--
--
Universität Tübingen
Zentrum für Datenverarbeitung
Wächterstraße 76
72074 Tübingen
E-Mail: ramon.pfeiffer at uni-tuebingen.de
Telefon: +49-7071-29-70213
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5437 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://shibboleth.net/pipermail/users/attachments/20201125/6d981836/attachment.p7s>
More information about the users
mailing list