Uploaded image for project: 'Shibboleth Discovery Service - Java'
  1. Shibboleth Discovery Service - Java
  2. SDSJ-66

Specifying a white list is causing the Discovery Service to NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: 1.1.2
    • Labels:
      None
    • Java Version:
      Sun 1.6
    • Servlet Container:
      Apache Tomcat 6.0

      Description

      I'm getting the following Discovery log entries when I've configured a white list to select a specific set of IdPs from a much larger (the InCommon metadata) metadata file. I've attached (assuming I figure out how to do so) the wayfconfig.xml file, the InCommon metadata file, and a part of the log file applicable to that reloading & invocation of the Discovery service.

      06:39:57.620 DEBUG [org.opensaml.saml2.metadata.provider.FilesystemMetadataProvider] Refreshing metadata from file /o
      pt/discovery-shib/metadata/InCommon-metadata.xml

      06:39:57.724 DEBUG [org.opensaml.xml.signature.impl.SignatureUnmarshaller] Starting to unmarshall Apache XML-Security
      -based SignatureImpl element

      06:39:57.725 DEBUG [org.opensaml.xml.signature.impl.SignatureUnmarshaller] Constructing Apache XMLSignature object

      06:39:57.728 DEBUG [org.apache.xml.security.utils.ElementProxy] setElement("ds:Signature", "")

      06:39:57.731 DEBUG [org.apache.xml.security.utils.ElementProxy] setElement("ds:SignedInfo", "")

      06:39:57.731 DEBUG [org.apache.xml.security.utils.ElementProxy] setElement("ds:SignatureMethod", "")

      06:39:57.732 DEBUG [org.apache.xml.security.utils.ElementProxy] setElement("ds:KeyInfo", "")

      06:39:57.732 DEBUG [org.opensaml.xml.signature.impl.SignatureUnmarshaller] Adding canonicalization and signing algori
      thms, and HMAC output length to Signature

      06:39:57.732 DEBUG [org.opensaml.xml.signature.impl.SignatureUnmarshaller] Adding KeyInfo to Signature

      06:39:58.356 DEBUG [org.opensaml.saml2.metadata.provider.AbstractMetadataProvider] Applying metadata filter

      06:39:58.357 DEBUG [edu.internet2.middleware.shibboleth.wayf.plugins.provider.ListFilter] Filter White: Removing non-
      whitelisted https://carmenwiki.osu.edu/shibboleth from urn:mace:incommon

      06:39:58.363 ERROR [edu.internet2.middleware.shibboleth.wayf.WayfService] Error parsing DS configuration file.
      java.lang.UnsupportedOperationException: null
              at org.opensaml.xml.util.ListView.remove(IndexedXMLObjectChildrenList.java:327)
              at org.opensaml.xml.util.ListView.remove(IndexedXMLObjectChildrenList.java:237)
              at java.util.AbstractList$Itr.remove(AbstractList.java:360)
              at edu.internet2.middleware.shibboleth.wayf.plugins.provider.ListFilter.filterEntities(ListFilter.java:172)
              at edu.internet2.middleware.shibboleth.wayf.plugins.provider.ListFilter.doFilter(ListFilter.java:124)
              at org.opensaml.saml2.metadata.provider.MetadataFilterChain.doFilter(MetadataFilterChain.java:44)
              at org.opensaml.saml2.metadata.provider.AbstractMetadataProvider.filterMetadata(AbstractMetadataProvider.java
      :210)
              at org.opensaml.saml2.metadata.provider.FilesystemMetadataProvider.refreshMetadata(FilesystemMetadataProvider
      .java:146)
              at org.opensaml.saml2.metadata.provider.FilesystemMetadataProvider.initialize(FilesystemMetadataProvider.java
      :93)
              at edu.internet2.middleware.shibboleth.wayf.IdPSiteSet.<init>(IdPSiteSet.java:188)
              at edu.internet2.middleware.shibboleth.wayf.WayfService.init(WayfService.java:183)
              at javax.servlet.GenericServlet.init(GenericServlet.java:212)
              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
              at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
              at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
              at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
              at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
              at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
              at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
              at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
              at java.lang.Thread.run(Thread.java:619)

        Attachments

          Activity

            People

            • Assignee:
              rdw Rod Widdowson
              Reporter:
              mapgrady Michael A. Grady
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: