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

Public API broken - SSOTokenManager.getValidSessions(SSOToken requester, String server)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 14.5.0, 5.5.1, 6.0.0
    • Fix Version/s: 6.5.0, 6.0.1
    • Component/s: SDK
    • Labels:
    • Target Version/s:
    • Sprint:
      AM Sustaining Sprint 51, AM Sustaining Sprint 52
    • Story Points:
      3
    • Support Ticket IDs:

      Description

      Bug description

      SSOTokenManager.getValidSessions(SSOToken requester, String server) does not return SSOTokens anymore

      How to reproduce the issue

      1. Configure AM 5.5.0
      2. Include attached JSP in AM webapp
      3. Perform REST authenticate call for demo user several times
      4. Request sessionTest.jsp
      Expected behaviour
      Actual SessionCount should be shown
      
      Current behaviour
      SessionCount of 0 is shown
      

      Code analysis

      com.iplanet.dpro.session.service.SessionService.java
      ...
      public SearchResults<Session> getValidSessionsUsingHandles(Session session, String pattern) throws SessionException {
      
          SearchResults<SessionInfo> searchResults = getValidSessions(session, pattern);
      
          Set<SessionInfo> infos = searchResults.getSearchResults();
      
          Set<Session> sessions = new HashSet<>();
      
          for (SessionInfo info : infos) {
              SessionID sid = new SessionID(info.getSessionID());
              sessions.add(getSession(sid));
          }
      
          return new SearchResults<>(sessions.size(), sessions, searchResults.getErrorCode());
      }

      the variable infos holds the results, but getSession(sid) fails

      The culprit seems to be

      com.iplanet.dpro.session.monitoring.MonitoredOperations.java
          public Session resolveSession(SessionID sessionID) throws SessionException {
              return time("resolve", () -> sessionOperations.resolveSession(sessionID));
          }
      

        Attachments

          Activity

            People

            • Assignee:
              sachiko Sachiko Wallace
              Reporter:
              bthalmayr Bernhard Thalmayr
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: