RegexSplit resolver returning no values

Morris, Andi amorris at cardiffmet.ac.uk
Fri Jan 29 05:42:26 EST 2016


Hi all,
I'm trying to use the RegexSplit resolver in order to grab the first match of a string, but my debug idp-process.log shows:

09:28:35.050 - DEBUG [edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ShibbolethAttributeResolver:314] - Resolving attribute PersonalRef for principal <redactedusername>
09:28:35.051 - DEBUG [edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ShibbolethAttributeResolver:336] - Resolved attribute PersonalRef containing 0 values
09:28:35.090 - DEBUG [edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ShibbolethAttributeResolver:455] - Removing attribute PersonalRef from resolution result for principal <redactedusername>.  It contains no values.
09:28:35.095 - DEBUG [edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.ShibbolethAttributeFilteringEngine:163] - Processing permit value rule for attribute PersonalRef for principal <redactedusername>

The attribute is declared as:

<resolver:AttributeDefinition xsi:type="RegexSplit" xmlns="urn:mace:shibboleth:2.0:resolver:ad"
                              id="PersonalRef"
                              sourceAttributeID="description"
                              regex="(\d{5})">
<resolver:Dependency ref="myLDAP" />

</resolver:AttributeDefinition>

I need to grab the first 5 digits from a string, an example of which is below:

12345 some text 12/01/17

When I run this through http://www.regexplanet.com/advanced/java/index.html I see that it matches the first 5 characters and leaves the rest, as I want, so this leads me to believe that I'm missing something in the attribute resolver. Can anyone advise please?

Cheers,
Andi
________________________________

[Cardiff Metropolitan University - 150 years of nurturing talent]<http://www.cardiffmet.ac.uk/cardiffmet150>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20160129/ec59b164/attachment.html>


More information about the users mailing list