Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-8910

NPE if a null siteID is passed to Session.validateSessionID

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.0.0, 12.0.1, 12.0.2
    • Fix Version/s: 12.0.4, 13.5.1, 14.0.0
    • Component/s: session
    • Labels:
    • Sprint:
      AM Sustaining Sprint 23, AM Sustaining Sprint 24, AM Sustaining Sprint 25, AM Sustaining Sprint 26
    • Support Ticket IDs:

      Description

      To Reproduce 1n 12.0.2:
      Call the session service with the attached session xml.

      e.g
      curl -d @brokenspace.xml http://openam-.example.com:8080/openam/sessionservice

      This will result in the following ResponseSet

      <ResponseSet vers="1.0" svcid="session" reqid="0">
      <Response><![CDATA[null]]></Response>
      </ResponseSet>
      

      And in the Session Debug

      java.lang.NullPointerException
      	at java.util.Hashtable.get(Hashtable.java:363)
      	at com.iplanet.services.naming.WebtopNaming.getSiteID(WebtopNaming.java:936)
      	at com.iplanet.dpro.session.Session.validateSessionID(Session.java:2034)
      	at com.iplanet.dpro.session.Session.getSessionServiceURL(Session.java:1356)
      	at com.iplanet.dpro.session.service.SessionRequestHandler.processSessionRequest(SessionRequestHandler.java:240)
      	at com.iplanet.dpro.session.service.SessionRequestHandler.access$000(SessionRequestHandler.java:61)
      	at com.iplanet.dpro.session.service.SessionRequestHandler$1.run(SessionRequestHandler.java:136)
      	at com.sun.identity.session.util.RestrictedTokenContext.doUsing(RestrictedTokenContext.java:82)
      	at com.iplanet.dpro.session.service.SessionRequestHandler.processRequest(SessionRequestHandler.java:133)
      	at com.iplanet.dpro.session.service.SessionRequestHandler.process(SessionRequestHandler.java:81)
      	at com.iplanet.services.comm.server.PLLRequestServlet.handleRequest(PLLRequestServlet.java:182)
      	at com.iplanet.services.comm.server.PLLRequestServlet.doPost(PLLRequestServlet.java:135)
      

        Attachments

        1. brokenspace.xml
          0.3 kB
          Jonathan Thomas

          Issue Links

            Activity

              People

              • Assignee:
                jonthomas Jonathan Thomas
                Reporter:
                jonthomas Jonathan Thomas
                QA Assignee:
                Filip Kubáň [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Time Spent - 1h Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - 1h Remaining Estimate - 1h
                  1h