Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011039Openbravo ERPA. Platformpublic2009-10-19 15:172010-03-10 18:28
roklenardic 
alostale 
urgentminorN/A
closedfixed 
5
 
2.50MP12 
Core
No
0011039: Active Session Detection
The session timeout (even though configurable) might cause frustrations to OPS customers:

   1. if set low they will be required to relog a few times a day
   2. if set high, closing the browser locks the session for too long

Use the pulling for alerts as a kind of heartbeat:
 * if this request for alerts is present (meaning the browser with the application is actually opened), then use the configured timeout value to expire the session
 * if the request for alerts is NOT present (probably a crashed or a closed browser) then automatically expire the session after a minute or so
No tags attached.
has duplicate defect 00119672.50MP14 closed alostale Session is kept as active even after time out. 
related to defect 00268463.0PR14Q3 closed alostale Code running on tomcat start to search in remote tomcats is not needed anymore and can't work with Load Balanced Tomcats 
Issue History
2009-10-19 15:17roklenardicNew Issue
2009-10-19 15:17roklenardicAssigned To => iciordia
2010-01-15 15:32iciordiaAssigned Toiciordia => alostale
2010-01-15 15:32iciordiaPrioritynormal => urgent
2010-01-15 15:32iciordiaStatusnew => scheduled
2010-01-15 15:32iciordiaFixed in Version => 2.50MP13
2010-01-28 12:26iciordiaRelationship addedrelated to 0011967
2010-02-12 12:22alostaleRelationship replacedhas duplicate 0011967
2010-02-18 11:11hgbotCheckin
2010-02-18 11:11hgbotNote Added: 0024578
2010-02-18 11:11hgbotStatusscheduled => resolved
2010-02-18 11:11hgbotResolutionopen => fixed
2010-02-18 11:11hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/0e103bbcd82f95075694406df501a9192529b74f [^]
2010-02-18 12:47alostaleNote Added: 0024588
2010-02-18 13:43hgbotCheckin
2010-02-18 13:43hgbotNote Added: 0024596
2010-02-18 13:43hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/0e103bbcd82f95075694406df501a9192529b74f [^] => http://code.openbravo.com/erp/devel/pi/rev/160a70ea1019baea7976cbffc6658eacbd351ae2 [^]
2010-02-19 16:35hudsonbotCheckin
2010-02-19 16:35hudsonbotNote Added: 0024660
2010-02-19 16:35hudsonbotCheckin
2010-02-19 16:35hudsonbotNote Added: 0024662
2010-02-22 10:21hgbotCheckin
2010-02-22 10:21hgbotNote Added: 0024683
2010-02-22 10:21hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/160a70ea1019baea7976cbffc6658eacbd351ae2 [^] => http://code.openbravo.com/erp/devel/pi/rev/46957ab44fec7999de0aa0009139a89462849bc3 [^]
2010-02-22 11:39iperdomoNote Added: 0024685
2010-02-22 12:11iperdomoNote Added: 0024687
2010-02-22 12:11iperdomoStatusresolved => closed
2010-02-22 12:11iperdomoFixed in Version2.50MP13 => 2.50MP12
2010-02-23 00:00anonymoussf_bug_id0 =>
2010-03-03 13:48hudsonbotCheckin
2010-03-03 13:48hudsonbotNote Added: 0025004
2010-03-10 18:28anonymoussf_bug_id => 2967933
2014-06-11 18:26shuehnerRelationship addedrelated to 0026846

Notes
(0024578)
hgbot   
2010-02-18 11:11   
Repository: erp/devel/pi
Changeset: 0e103bbcd82f95075694406df501a9192529b74f
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Feb 18 11:12:09 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/0e103bbcd82f95075694406df501a9192529b74f [^]

fixed issue 11039: Active Session Detection

---
M src-db/database/model/tables/AD_SESSION.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src/org/openbravo/erpCommon/obps/ActivationKey.java
M src/org/openbravo/erpCommon/utility/VerticalMenu.java
---
(0024588)
alostale   
2010-02-18 12:47   
Wrong commit comment, it is related with this issue, instead of 0011113

Repository: erp/devel/pi
Changeset: eecd5dedc0dcaba824f005798ab3c9605bf46648
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Feb 18 12:36:08 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/eecd5dedc0dcaba824f005798ab3c9605bf46648 [^] [^]

fixed bug 11113: Small fixes and improved comments

---
M src/org/openbravo/erpCommon/obps/ActivationKey.java
M src/org/openbravo/erpCommon/utility/VerticalMenu.java
(0024596)
hgbot   
2010-02-18 13:43   
Repository: erp/devel/pi
Changeset: 160a70ea1019baea7976cbffc6658eacbd351ae2
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Feb 18 13:44:45 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/160a70ea1019baea7976cbffc6658eacbd351ae2 [^]

related to issue 11039: Fixed access problem for not admin roles

---
M src/org/openbravo/erpCommon/utility/VerticalMenu.java
---
(0024660)
hudsonbot   
2010-02-19 16:35   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/0e103bbcd82f [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/d22bdcc83354 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16481.obx [^]
(0024662)
hudsonbot   
2010-02-19 16:35   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/160a70ea1019 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/d22bdcc83354 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16481.obx [^]
(0024683)
hgbot   
2010-02-22 10:21   
Repository: erp/devel/pi
Changeset: 46957ab44fec7999de0aa0009139a89462849bc3
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Feb 22 10:22:54 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/46957ab44fec7999de0aa0009139a89462849bc3 [^]

related to issue 11039
  Criteria to close sessions because of timeout now closes also sessions without last ping

---
M src/org/openbravo/erpCommon/obps/ActivationKey.java
---
(0024685)
iperdomo   
2010-02-22 11:39   
Sample of the log when closing 'not active' sessions:

10:04:18 [main] INFO org.openbravo.dal.core.DalLayerInitializer - Initializing in-memory model...
10:04:18 [main] INFO org.openbravo.base.model.ModelProvider - Building runtime model
10:04:24 [main] INFO org.openbravo.dal.core.DalLayerInitializer - Model read in-memory, generating mapping...
10:04:35 [main] INFO org.openbravo.dal.core.DalLayerInitializer - Dal layer initialized
10:04:35 [main] INFO org.openbravo.base.OBSchedulerInitializerListener - Quartz Initializer Servlet loaded, initializing Scheduler...
10:04:35 [main] INFO org.openbravo.base.OBSchedulerInitializerListener - Scheduler will start in 30 seconds.
10:04:35 [main] INFO org.openbravo.base.OBSchedulerInitializerListener - Storing the Quartz Scheduler Factory in the servlet context at key: org.quartz.impl.StdSchedulerFactory.KEY
10:04:35 [main] INFO org.openbravo.base.OBSchedulerInitializerListener - Storing ConfigParameters and ConnectionProvider in Scheduler Context.
10:04:35 [main] INFO org.openbravo.base.OBSchedulerInitializerListener - Initalizing singleton instance of org.openbravo.scheduling.OBScheduler
a3196480 10:06:14 [ajp-8009-1] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 0
a3196480 10:06:14 [ajp-8009-1] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 0
a3196480 10:28:10 [ajp-8009-5] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 1
a3196480 10:28:10 [ajp-8009-5] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 1
a3196480 10:29:08 [ajp-8009-5] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 2
a3196480 10:29:17 [ajp-8009-3] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 2
a3196480 10:29:20 [ajp-8009-6] INFO org.openbravo.erpCommon.security.SessionListener - Closed session079B127D22CB4E25AC93E8F547DE5C20
a3196480 10:30:03 [main] INFO org.openbravo.erpCommon.security.SessionListener - Closed session4DFB712A219C4ACA9CBE0E77C4922992
a3196480 10:30:03 [main] INFO org.openbravo.erpCommon.security.SessionListener - Closed session6B64BE41BE7D44E7A51DB3F7A5B25C79
a3196480 10:30:03 [main] INFO org.openbravo.erpCommon.security.SessionListener - Destroy context
a3196480 10:30:03 [main] INFO org.openbravo.base.OBSchedulerInitializerListener - Quartz Scheduler successful shutdown.
10:30:37 [main] INFO org.openbravo.dal.core.DalLayerInitializer - Initializing in-memory model...
10:30:37 [main] INFO org.openbravo.base.model.ModelProvider - Building runtime model
10:30:44 [main] INFO org.openbravo.dal.core.DalLayerInitializer - Model read in-memory, generating mapping...
10:30:54 [main] INFO org.openbravo.dal.core.DalLayerInitializer - Dal layer initialized
10:30:54 [main] INFO org.openbravo.base.OBSchedulerInitializerListener - Quartz Initializer Servlet loaded, initializing Scheduler...
10:30:54 [main] INFO org.openbravo.base.OBSchedulerInitializerListener - Scheduler will start in 30 seconds.
10:30:54 [main] INFO org.openbravo.base.OBSchedulerInitializerListener - Storing the Quartz Scheduler Factory in the servlet context at key: org.quartz.impl.StdSchedulerFactory.KEY
10:30:54 [main] INFO org.openbravo.base.OBSchedulerInitializerListener - Storing ConfigParameters and ConnectionProvider in Scheduler Context.
10:30:54 [main] INFO org.openbravo.base.OBSchedulerInitializerListener - Initalizing singleton instance of org.openbravo.scheduling.OBScheduler
a3196480 10:33:15 [ajp-8009-3] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 0
a3196480 10:33:15 [ajp-8009-3] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 0
a3196480 10:33:37 [ajp-8009-4] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 1
a3196480 10:33:37 [ajp-8009-4] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 1
a3196480 10:34:12 [ajp-8009-1] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 1
a3196480 10:34:37 [ajp-8009-4] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 2
a3196480 10:34:44 [ajp-8009-4] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 2
a3196480 10:34:46 [ajp-8009-2] INFO org.openbravo.erpCommon.security.SessionListener - Closed sessionC57FF9679088488F98B1BB0EBF0F0657
a3196480 10:38:22 [ajp-8009-2] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 2
a3196480 10:38:22 [ajp-8009-2] INFO org.openbravo.erpCommon.obps.ActivationKey - Deactivated session: C43171EECDCA4D2C9B7863F5ADB5BF8A beacuse of ping time out. Last ping: 2010-02-22 10:34:28.44. Last valid ping time: Mon Feb 22 10:36:22 UTC 2010
a3196480 10:38:22 [ajp-8009-2] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions after timeout cleanup: 1
a3196480 10:38:22 [ajp-8009-2] INFO org.openbravo.erpCommon.obps.ActivationKey - Active sessions: 1
(0024687)
iperdomo   
2010-02-22 12:11   
Tested on the following environment:
- OBPS EC2 machine 2.50MP11 updated with a core OBX (OpenbravoERP-2.50CI.16481.obx)
- Used the option 'restart server' after the core upgrade

My only 'concern' is the latency of 2 minutes after a session could be considered 'dead'. From the user perspective could be too much?
(0025004)
hudsonbot   
2010-03-03 13:48   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/46957ab44fec [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/17ddf2c3af51 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16508.obx [^]