Attribute Resolver (ServiceException): v2 to v3 Migration

Lionel Samuel lionel.samuel01 at gmail.com
Wed Jul 4 19:57:03 EDT 2018


We are helping one of our units migrate from IdP v2 to v3.

Trying to simplify the attribute-reolver.xml when addind new; but still
keeping the old.

When adding the new world -- the following exception was received -- did we
miss something in the schema path (listed at email's tail-end).


<AttributeDefinition xsi:type="ad:Simple" id="mobileNumber"
sourceAttributeID="giveName">
            <Dependency ref="givenName" />
            <AttributeEncoder xsi:type="SAML2String"
name="urn:oid:2.16.840.1.113730.3.1.241" friendlyName="displayName"
encodeType="false" />
        </AttributeDefinition>

LOG extract:

net.shibboleth.utilities.java.support.service.ServiceException:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
38 in XML document from
net.shibboleth.ext.spring.resource.FileBackedHTTPResource at 55b99e42 is
invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 38;
columnNumber: 96; cvc-complex-type.2.4.a: Invalid content was found
starting with element 'AttributeDefinition'. One of
'{"urn:mace:shibboleth:2.0:resolver":AttributeDefinition,
"urn:mace:shibboleth:2.0:resolver":DataConnector,
"urn:mace:shibboleth:2.0:resolver":PrincipalConnector}' is expected.
    at
net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:336)
Caused by:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
38 in XML document from
net.shibboleth.ext.spring.resource.FileBackedHTTPResource at 55b99e42 is
invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 38;
columnNumber: 96; cvc-complex-type.2.4.a: Invalid content was found
starting with element 'AttributeDefinition'. One of
'{"urn:mace:shibboleth:2.0:resolver":AttributeDefinition,
"urn:mace:shibboleth:2.0:resolver":DataConnector,
"urn:mace:shibboleth:2.0:resolver":PrincipalConnector}' is expected.
    at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'AttributeDefinition'. One of
'{"urn:mace:shibboleth:2.0:resolver":AttributeDefinition,
"urn:mace:shibboleth:2.0:resolver":DataConnector,
"urn:mace:shibboleth:2.0:resolver":PrincipalConnector}' is expected.


Schema path:

<resolver:AttributeResolver
xmlns:resolver="urn:mace:shibboleth:2.0:resolver" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
                            xmlns:pc="urn:mace:shibboleth:2.0:resolver:pc"
xmlns:ad="urn:mace:shibboleth:2.0:resolver:ad"
                            xmlns:dc="urn:mace:shibboleth:2.0:resolver:dc"
xmlns:enc="urn:mace:shibboleth:2.0:attribute:encoder"
                            xmlns:sec="urn:mace:shibboleth:2.0:security"

xsi:schemaLocation="urn:mace:shibboleth:2.0:resolver
classpath:/schema/shibboleth-2.0-attribute-resolver.xsd

urn:mace:shibboleth:2.0:resolver:pc
classpath:/schema/shibboleth-2.0-attribute-resolver-pc.xsd

urn:mace:shibboleth:2.0:resolver:ad
classpath:/schema/shibboleth-2.0-attribute-resolver-ad.xsd

urn:mace:shibboleth:2.0:resolver:dc
classpath:/schema/shibboleth-2.0-attribute-resolver-dc.xsd

urn:mace:shibboleth:2.0:attribute:encoder
classpath:/schema/shibboleth-2.0-attribute-encoder.xsd

urn:mace:shibboleth:2.0:security
classpath:/schema/shibboleth-2.0-security.xsd">
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20180704/d4f02308/attachment.html>


More information about the users mailing list