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

UnsupportedOperationException seen on SAML related session logout

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.1, 6.0.0
    • Fix Version/s: 6.0.0, 5.5.2
    • Component/s: SAML, session
    • Labels:
    • Sprint:
      AM Sustaining Sprint 50
    • Story Points:
      2
    • Needs backport:
      No
    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      If logout occurs when using the Fedlet for example, the following is seen in the CoreSystem log on AM:

      ERROR: Exception occurred while calling objectChanged
      java.lang.UnsupportedOperationException
              at com.sun.identity.plugin.session.impl.FMSessionNotification$StoredTokenProperties.getTokenID(FMSessionNotification.java:303)
              at com.sun.identity.plugin.session.impl.FMSessionProvider.getSessionID(FMSessionProvider.java:421)
              at com.sun.identity.saml2.profile.IDPSessionListener.sessionInvalidated(IDPSessionListener.java:234)
              at com.sun.identity.plugin.session.impl.FMSessionNotification.notifyListeners(FMSessionNotification.java:157)
              at com.sun.identity.plugin.session.impl.FMSessionNotification.access$000(FMSessionNotification.java:57)
              at com.sun.identity.plugin.session.impl.FMSessionNotification$1.sessionDeleted(FMSessionNotification.java:68)
              at com.iplanet.dpro.session.watchers.SessionDeletionWatcher.objectChanged(SessionDeletionWatcher.java:55)
              at org.forgerock.openam.sm.datalayer.impl.ldap.CTSDJLDAPv3PersistentSearch$QueueEntry.run(CTSDJLDAPv3PersistentSearch.java:184)
              at org.forgerock.openam.audit.context.AuditRequestContextPropagatingRunnable.run(AuditRequestContextPropagatingRunnable.java:34)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      

       

      How to reproduce the issue

      1). Set up AM and then set up the SAML Fedlet example.

      2). Verify that for example 'Run Identity Provider initiated SSO using HTTP POST binding' link works as expected from the Fedlet and that login is successful. 

      3). Then click one of the logout links from the Fedlet or logout from the AM side.  Logout succeeds but the error noted above is seen in CoreSystem.

       

      Expected behaviour
      No error should be seen
      
      Current behaviour
      The error above is seen in the CoreSystem logs
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sfraser Sam Fraser
                Reporter:
                andy.itter Andy Itter
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: