error from eduPersonScopedAffiliation in IDP 3.1.2

IAM David Bantz dabantz at alaska.edu
Tue Sep 1 17:07:13 EDT 2015


Every scripted attribute I use includes something like this:

if (typeof myAttribute != "undefined" && myAttribute != null &&
myAttribute.getValues().size() !=0)
{carry on with script}
else
{handle cases of undefined, null, or empty value}



On Tue, Sep 1, 2015 at 12:56 PM, Rob Ansaldo <rlansaldo at amherst.edu> wrote:

>
> > On Aug 17, 2015, at 12:26 PM, Cantor, Scott <cantor.2 at osu.edu> wrote:
> >
> > On 8/17/15, 12:08 PM, "users on behalf of Hong Ye" <
> users-bounces at shibboleth.net on behalf of hy93 at cornell.edu> wrote:
> >>
> >> 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.
> >
> > 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.
> >
> > — Scott
>
> 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:
>
>
> 2015-09-01 15:07:47,047 - ERROR
> [net.shibboleth.idp.profile.impl.ResolveAttributes:256] - Profile Action
> ResolveAttributes: Error resolving attributes
> 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
>         at
> net.shibboleth.idp.attribute.resolver.ad.impl.ScopedAttributeDefinition.doAttributeDefinitionResolve(ScopedAttributeDefinition.java:91)
> 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
>         at
> net.shibboleth.idp.attribute.resolver.ad.impl.ScopedAttributeDefinition.doAttributeDefinitionResolve(ScopedAttributeDefinition.java:91)
> --
> 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/20150901/2c4dfe32/attachment-0001.html>


More information about the users mailing list