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

Cannot upgrade from OpenAM 12.0.x to nightly due to NPE around JwtSessionMapperConfig

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.0.3, 12.0.4
    • Fix Version/s: 14.0.0
    • Component/s: session
    • Labels:
    • Sprint:
      AM Sustaining Sprint 29

      Description

      This is similar to OPENAM-5915

      Issue 1:
      During upgrade from OpenAM 12.0.x, ENCRYPTION_ALGORITHM attribute doesn't exist and therefore the value will be null. This will cause NPE.

      Issue 2:
      Even if we worked around Issue#1, the change made through OPENAM-9373 will reject if SIGNING_ALGORITHM is NONE.

      ERROR: SessionService: Initialization Failed
      java.lang.NullPointerException: Name is null
              at java.lang.Enum.valueOf(Enum.java:235)
              at org.forgerock.json.jose.jwe.JweAlgorithmType.valueOf(JweAlgorithmType.java:25)
              at org.forgerock.openam.sso.providers.stateless.JwtSessionMapperConfig.<init>(JwtSessionMapperConfig.java:70)
              at com.iplanet.dpro.session.service.SessionServiceConfig$HotSwappableSessionServiceConfig.<init>(SessionServiceConfig.java:183)
              at com.iplanet.dpro.session.service.SessionServiceConfig$HotSwappableSessionServiceConfig.<init>(SessionServiceConfig.java:155)
              at com.iplanet.dpro.session.service.SessionServiceConfig.<init>(SessionServiceConfig.java:353)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
              at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:85)
              at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
              at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
              at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
              at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
              at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
              at com.google.inject.Scopes$1$1.get(Scopes.java:65)
              at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
              at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
              at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
              at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
              at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
              at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
              at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
              at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sachiko Sachiko Wallace
                Reporter:
                sachiko Sachiko Wallace
                QA Assignee:
                Filip Kubáň [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: