[OPENAM-1682] Set session.setType(Session.USER_SESSION) for Agent/Application (when using agentSessionIdleTime) Created: 12/Sep/12  Updated: 09/Dec/14  Resolved: 09/Dec/14

Status: Resolved
Project: OpenAM
Component/s: session
Affects Version/s: 10.0.0
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: vharseko Assignee: Peter Major [X] (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates OPENAM-4413 Agent sessions are affected by active... Resolved
Rank: 1|hznhqn:
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);
             }


 Comments   
Comment by vharseko [ 13/Mar/14 ]

agent session leak when use agentSessionIdleTime

Comment by Peter Major [X] (Inactive) [ 09/Dec/14 ]

Resolving as duplicate of OPENAM-4413, as that one has a better description of the issue.

Generated at Thu Feb 25 16:38:10 UTC 2021 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.