Moving scripts to idp v3 from idp v2
Cantor, Scott
cantor.2 at osu.edu
Mon Nov 9 17:13:53 EST 2015
On 11/9/15, 5:05 PM, "users on behalf of Creado, Sylvester J. S." <users-bounces at shibboleth.net on behalf of Sylvester.Creado at lmu.edu> wrote:
>Hi,
>
>I am trying to move a script from idpv2 to idpv3. The script is as below
It looks more like you're trying to move to Java 8, not IdP 3. You're still using deprecated compatibility interfaces and such, so that's a very different animal from actually updating the script. My advice is to not bother with Nashorn and see if it works unmodified with Rhino added to the warfile.
Failing that, I would suggest you get the V2 script working with V2 on Java 8 and Nashorn. Basically, pick a change, but not two at the same time if possible.
Secondly, maybe I'm wrong but your new script looks suspect to me. The conditional block for if( null == email_aliases_script) seems to be wrapping the entire script. Since I believe on V3, the input attribute is created for you (and must be, with Nashorn), that means you're basically bypassing the entire script on V3 since the attribute won't ever be null on input.
-- Scott
More information about the users
mailing list