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

RelyingPartyUIContext throws NPE when metadata AttributeConsumingService/ServiceName xml:lang is missing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.2, 3.2.0
    • Component/s: User Interface
    • Labels:
      None

      Description

      Not totally sure which component this should be, but it's nominally happening when trying to render the login page via login.vm:

      Metadata contains the following AttributeConsumingService:

      <md:AttributeConsumingService index="0">
        <md:ServiceName>GU test Middleware server</md:ServiceName>
        <md:RequestedAttribute xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" Name="urn:liberty:ssos:2006-08" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" isRequired="true" />
      </md:AttributeConsumingService>
      

      ServiceName's xml:lang is missing. This is schema invalid, but we probably shouldn't throw an NPE here.

      I'll attach the full log info, but the relevant bits of the root cause trace are:

      2015-06-23 16:54:49,198 - ERROR [net.shibboleth.idp.authn:-2] - Uncaught runtime exception
      java.lang.IllegalStateException: Exception occurred rendering view org.springframework.web.servlet.view.velocity.VelocityView: name 'login'; URL [login.vm]
      	at org.springframework.webflow.mvc.view.AbstractMvcView.render(AbstractMvcView.java:200)
      
      ...SNIP...
      
      Caused by: java.lang.NullPointerException: null
      	at net.shibboleth.idp.ui.context.RelyingPartyUIContext.getNameFromAttributeConsumingService(RelyingPartyUIContext.java:333)
      	at net.shibboleth.idp.ui.context.RelyingPartyUIContext.getServiceName(RelyingPartyUIContext.java:503)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:142)
      
      

        Attachments

        1. rpuicontext.npe.txt
          8 kB
          Brent Putman

          Activity

            People

            Assignee:
            cantor.2@osu.edu Scott Cantor
            Reporter:
            putmanb@shibboleth.net Brent Putman
            Watchers:
            3 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 - 1 hour, 8 minutes
                1h 8m