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

Error with duplicate <ServiceDescription> with same xml:lang in the metadata

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0-beta1, 4.0.0-beta2, 4.0.0, 4.0.1
    • Fix Version/s: 4.1.0
    • Component/s: Metadata, User Interface
    • Labels:
      None

      Description

      If you have multiple <ServiceDescription>s with same xml:lang value, Shibboleth IdP 4.0.0 stops with the following error.
      3.4.x ignores such typos.

      E.g.

          :
          <AttributeConsumingService index="1" isDefault="true">
            :
            <ServiceDescription xml:lang="en">English e-learning</ServiceDescription>
            <ServiceDescription xml:lang="en">英語e-learning</ServiceDescription>
            :
          </AttributeConsumingService>
          :
      

      Error logs on 4.0.0:

      2020-06-24 12:31:37,832 -  - ERROR [net.shibboleth.utilities.java.support.service.AbstractReloadableService:182] - Service 'shibboleth.MetadataResolverService': Initial load failed
      net.shibboleth.utilities.java.support.service.ServiceException: Failed to load [file [/opt/shibboleth-idp-4.0.0/conf/metadata-providers.xml], file [/opt/shibboleth-idp-4.0.0/system/conf/metadata-providers-system.xml]]
              at net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:387)
              at net.shibboleth.utilities.java.support.service.AbstractReloadableService.doInitialize(AbstractReloadableService.java:176)
        :
              ... 153 common frames omitted
      Caused by: net.shibboleth.utilities.java.support.resolver.ResolverException: java.lang.IllegalStateException: Duplicate key en (attempted merging values English e-learning and 英語e-learning)
              at org.opensaml.saml.metadata.resolver.impl.AbstractReloadingMetadataResolver.refresh(AbstractReloadingMetadataResolver.java:378)
              at org.opensaml.saml.metadata.resolver.impl.AbstractReloadingMetadataResolver.initMetadataResolver(AbstractReloadingMetadataResolver.java:325)
              ... 162 common frames omitted
      Caused by: java.lang.IllegalStateException: Duplicate key en (attempted merging values English e-learning and 英語e-learning)
              at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:133)
      

        Attachments

          Activity

            People

            Assignee:
            rdw@iay.org.uk Rod Widdowson
            Reporter:
            takeshi@gakunin.nii.ac.jp Takeshi Nishimura
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 1 hour
                1h