easy script cannot execute

James Nurmi jdnurmi at qwe.cc
Thu Jul 9 21:32:01 EDT 2015


On Thu, Jul 9, 2015 at 6:28 PM, IAM David Bantz <dabantz at alaska.edu> wrote:

>  <resolver:Dependency ref="assuranceExplicit" />
>
> ...
>
>         if (assurance == null)
>
>                 {assurance =*=* new BasicAttribute("assurance");}
>
you're not assigning, you're comparing.


>         if (assuranceExplicit == null)
>
>                 {assurance.getValues().add("a default value");}
>
>         if (assuranceExplicit != null)
>
>
> {assurance.getValues().add(assuranceExplicit.getValues().get(0));}
>
>         logger.debug("assurance - allowed authN contexts: " +
> assurance.getValues());
>
> ...
>
> fails to execute with the ScriptedAttributeDefinition ERROR:
>
> ScriptletAttributeDefinition assurance unable to execute script javax.script.ScriptException:
> sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call
> method "getValues" of null (<Unknown Source>#11)
>
> assurance is assigned a value whether assuranceExplicit is null or not
> null, so I cannot see how assurance can be null.
>
>
>
> --
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150709/ba7b5387/attachment.html>


More information about the users mailing list