Uploaded image for project: 'Identity Provider'
  1. Identity Provider
  2. IDP-819

metadata-providers.xml unable to use properties to populate metadataURL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.2.0
    • Component/s: Configuration
    • Labels:
      None
    • Environment:

      IdP 3.1.2
      Tomcat 8.0.23
      Java 1.8.0_45 (Oracle)
      RHEL 6.6

      Description

      Submitted at Rod Widdowson's request.

      When trying to use a property to define the metadataURL attribute in a MetadataProvider element...

      {{ <MetadataProvider id="localFed" xsi:type="FileBackedHTTPMetadataProvider" backingFile="%

      {federation.md.file}

      " metadataURL="%

      {federation.md.URL}">
      }}
      the IdP seems to be validating against the property tag itself, rather than the contents of that tag:

      {{2015-09-15 15:01:02,279 - ERROR [net.shibboleth.utilities.java.support.service.AbstractReloadableService:181] - Service 'shibboleth.MetadataResolverService': Initial load failed
      net.shibboleth.utilities.java.support.service.ServiceException: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 13 in XML document from file [/usr/local/shibboleth-idp/conf/metadata-providers.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 157; cvc-datatype-valid.1.2.1: '%{federation.md.URL}

      ' is not a valid value for 'anyURI'.
      at net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:334)
      Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 13 in XML document from file [/usr/local/shibboleth-idp/conf/metadata-providers.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 157; cvc-datatype-valid.1.2.1: '%

      {federation.md.URL}' is not a valid value for 'anyURI'.
      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)
      Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '%{federation.md.URL}

      ' is not a valid value for 'anyURI'.
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)}}

        Attachments

          Activity

            People

            Assignee:
            rdw@iay.org.uk Rod Widdowson
            Reporter:
            liamr@umich.edu Liam Hoekenga
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 25 minutes
                25m