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

Set session.setType(Session.USER_SESSION) for Agent/Application (when using agentSessionIdleTime)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 10.0.0
    • Fix Version/s: None
    • Component/s: session
    • Labels:
      None
    • Sprint:
      Sprint 3

      Description

      by default session failover for policy agent not work and Application sessions has leaks

      if agentSessionIdleTime!=0 then always session.setType(Session.USER_SESSION)
      and session constrains executing for agent session:

      Index: 10.0.0-SNAPSHOT/opensso/products/amserver/source/com/sun/identity/authentication/service/LoginState.java
      ===================================================================
      --- 10.0.0-SNAPSHOT/opensso/products/amserver/source/com/sun/identity/authentication/service/LoginState.java	(revision 140)
      +++ 10.0.0-SNAPSHOT/opensso/products/amserver/source/com/sun/identity/authentication/service/LoginState.java	(working copy)
      @@ -1451,10 +1451,10 @@
                       session.setMaxSessionTime(maxSession);
                       session.setMaxIdleTime(idleTime);
                       session.setMaxCachingTime(cacheTime);
      +                session.setType(Session.USER_SESSION);
                   }
                   
                   session.setClientDomain(getOrgDN());
      -            session.setType(Session.USER_SESSION);
                   if ((client = getClient()) != null) {
                       session.putProperty(ISAuthConstants.HOST, client);
                   }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peter.major Peter Major [X] (Inactive)
                Reporter:
                vharseko vharseko
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: