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

Encounter "NullPointerException" during session upgrade

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 6.5.2.1, 6.5.2.3
    • Fix Version/s: None
    • Component/s: session, upgrade
    • Labels:
      None
    • Support Ticket IDs:

      Description

      Bug description

      Encounter "NullPointerException" during session upgrade

      How to reproduce the issue

      Create a basic auth tree ( Example ) that can authenticate a user and get a session cookie.

      Create two Datastore modules (Test1 and Test2) one with auth level 10, one with auth level 15

      Create two authentication chains (Test1 and Test2) using the respective modules. Only 1 per chain.

      In the browser

      =============

      Authenticate using the tree: https://am:port/openam?service=Example

      Authenticate using the Chain: https://am:port/openam?service=Test1#login (Auth Level 10)

      Authenticate using the Chain: https://am:port/openam?service=Test2#login (Auth Level 15)

      Expected behaviour
      Session upgrade is successful
      
      Current behaviour
      Error during login..
      amAuth:07/17/2020 09:19:42:369 AM SGT: Thread[http-nio-8080-exec-10,5,main]: TransactionId[58c96505-8053-457b-848d-08ce668555bd-2066]
      Exception
      java.lang.NullPointerException
              at com.sun.identity.authentication.service.LoginState.throwExceptionIfPrincipalsDiffer(LoginState.java:1482)
              at com.sun.identity.authentication.service.LoginState.setSessionProperties(LoginState.java:1200)
              at com.sun.identity.authentication.service.LoginState.produceSessionFromState(LoginState.java:1112)
              at com.sun.identity.authentication.service.AMLoginContext.runLogin(AMLoginContext.java:595)
              at com.sun.identity.authentication.server.AuthContextLocal.submitRequirements(AuthContextLocal.java:588)
              at org.forgerock.openam.core.rest.authn.core.wrappers.AuthContextLocalWrapper.submitRequirements(AuthContextLocalWrapper.java:108)
              at org.forgerock.openam.core.rest.authn.core.LoginProcess.next(LoginProcess.java:168)
              at org.forgerock.openam.core.rest.authn.RestAuthenticationHandler.processAuthentication(RestAuthenticationHandler.java:491)
              at org.forgerock.openam.core.rest.authn.RestAuthenticationHandler.authenticate(RestAuthenticationHandler.java:238)
              at org.forgerock.openam.core.rest.authn.http.AuthenticationServiceV1.authenticate(AuthenticationServiceV1.java:164)
      
      

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sam.phua Sam Phua
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: