<div dir="ltr"><div><div><div>Every scripted attribute I use includes something like this:<br><br>if (typeof myAttribute != "undefined" && myAttribute != null && myAttribute.getValues().size() !=0)<br></div>{carry on with script}<br></div>else<br></div>{handle cases of undefined, null, or empty value}<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 12:56 PM, Rob Ansaldo <span dir="ltr"><<a href="mailto:rlansaldo@amherst.edu" target="_blank">rlansaldo@amherst.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On Aug 17, 2015, at 12:26 PM, Cantor, Scott <<a href="mailto:cantor.2@osu.edu">cantor.2@osu.edu</a>> wrote:<br>
><br>
> On 8/17/15, 12:08 PM, "users on behalf of Hong Ye" <<a href="mailto:users-bounces@shibboleth.net">users-bounces@shibboleth.net</a> on behalf of <a href="mailto:hy93@cornell.edu">hy93@cornell.edu</a>> wrote:<br>
>><br>
>> We are running IDP 3.1.2 in our test environment. When user’s eduPersonAffiliaiton is empty, attribute resolver generated error when trying to resolve eduPersonScopedAffiliation. The error caused none of the attribute/value is released to the SP. This behavior is different than IDP 2.4.x.<br>
><br>
> It's a bug, please file it. You have embedded nulls in the source data, so you'll have to filter them out in the meantime.<br>
><br>
> — Scott<br>
<br>
Is there a workaround for this? How would one filter this out? I have the same problem with a custom scoped attribute I am deriving from a relational database data connector. Not all of my users have this attribute set. Doesn’t seem to matter if the attribute is NULL or an empty string, still get the following error:<br>
<br>
<br>
2015-09-01 15:07:47,047 - ERROR [net.shibboleth.idp.profile.impl.ResolveAttributes:256] - Profile Action ResolveAttributes: Error resolving attributes<br>
net.shibboleth.idp.attribute.resolver.ResolutionException: net.shibboleth.idp.attribute.UnsupportedAttributeTypeException: Attribute Definition 'DatatelEduPersonPrincipalName':This attribute definition only supports attribute value types of net.shibboleth.idp.attribute.StringAttributeValue not values of type net.shibboleth.idp.attribute.EmptyAttributeValue<br>
at net.shibboleth.idp.attribute.resolver.ad.impl.ScopedAttributeDefinition.doAttributeDefinitionResolve(ScopedAttributeDefinition.java:91)<br>
Caused by: net.shibboleth.idp.attribute.UnsupportedAttributeTypeException: Attribute Definition 'DatatelEduPersonPrincipalName':This attribute definition only supports attribute value types of net.shibboleth.idp.attribute.StringAttributeValue not values of type net.shibboleth.idp.attribute.EmptyAttributeValue<br>
at net.shibboleth.idp.attribute.resolver.ad.impl.ScopedAttributeDefinition.doAttributeDefinitionResolve(ScopedAttributeDefinition.java:91)<br>
<span class="HOEnZb"><font color="#888888">--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a></font></span></blockquote></div><br></div>