accessing user principal in scripted attributes
Liam Hoekenga
liamr at umich.edu
Fri Jun 12 15:13:42 EDT 2015
On Fri, Jun 12, 2015 at 1:48 PM, Cantor, Scott <cantor.2 at osu.edu> wrote:
> It's running exactly the code I'd expect, and the log messages are around
> the code that just sets the script context attributes that you're not
> getting.
My main development environment has been RHEL6.6 w/ Oracle Java 1.8.0_45
and Tomcat 8.0.23
I also have this problem on the IdP on my laptop - OSX 10.10.3 w/ Oracle
Java 1.8.0_45 and Jetty 9.2.9..
2015-06-12 15:06:55,368 - ERROR
[net.shibboleth.idp.profile.impl.ResolveAttributes:256] - Profile Action
ResolveAttributes: Error resolving attributes
net.shibboleth.idp.attribute.resolver.ResolutionException: Attribute
Definition 'umichPersonJpegPhotoMime': unable to execute script
at
net.shibboleth.idp.attribute.resolver.ad.impl.ScriptedAttributeDefinition.doAttributeDefinitionResolve(ScriptedAttributeDefinition.java:152)
Caused by: javax.script.ScriptException: TypeError: Cannot get property
"principalName" of null in <eval> at line number 9
at
jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:455)
Caused by: jdk.nashorn.internal.runtime.ECMAException: TypeError: Cannot
get property "principalName" of null
at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
...where line 9 is...
var user = requestContext.principalName;
Liam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150612/9e4328bc/attachment.html>
More information about the users
mailing list