attribute 'sourceAttributeID' required on 'StoredId' data connector

Description

Configuring a StoredIdDataConnector without the deprecated sourceAttributeID attribute results in an error during startup:
ERROR [net.shibboleth.utilities.java.support.service.AbstractReloadableService:182]

  • Service 'shibboleth.AttributeResolverService': Initial load failed
    net.shibboleth.utilities.java.support.service.ServiceException:
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
    Line 119 in XML document from file
    /opt/shibboleth-idp/conf/attribute-resolver-data-connectors.xml is
    invalid; nested exception is org.xml.sax.SAXParseException; lineNumber:
    119; columnNumber: 26; cvc-complex-type.4: Attribute 'sourceAttributeID'
    must appear on element 'DataConnector'.

Environment

None

Activity

Show:

Scott CantorDecember 8, 2018 at 5:05 PM

Closing after review.

Rod WiddowsonDecember 8, 2018 at 2:29 PM

Changes cherry picked into 3.4.2.

 

Leaving unclosed and assigning to  to make sure he agrees

ffazejv34koasf60jxys9dytceo=@https://idp.uni-tuebingen.de/shibbolethNovember 8, 2018 at 5:13 PM

I understand.

Good to know other warnings will work. Thanks!

Scott CantorNovember 8, 2018 at 5:09 PM

This does not warrant a 3.4.2 so you should not expect it. It may, but not because of this.

grep sourceAttributeID and you'll find all the places it's used. This doesn't suppress any other deprecation warnings.

ffazejv34koasf60jxys9dytceo=@https://idp.uni-tuebingen.de/shibbolethNovember 8, 2018 at 5:02 PM

Thanks for the quick fix.

Currently, the startup log complains about the use of the deprecated sourceAttributeID in the data connector; this swallows all warnings about the usage of sourceAttributeID in other places. So at the moment, I cannot use the warning log to discover all places where I use deprecated configuration. It would be nice to have a 3.4.2 to prepare the configuration for v4 with the help of the warning log.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Created November 8, 2018 at 4:29 PM
Updated December 8, 2018 at 5:05 PM
Resolved November 8, 2018 at 4:54 PM