Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023831Openbravo ERPC. Securitypublic2013-05-16 10:522013-05-23 01:33
jecharri 
alostale 
immediatemajoralways
closedfixed 
5
 
 
marvintm
Core
No
0023831: Problems with licenses in web POS and ERP
Problems with licenses in web POS and ERP

-Activate one instance with one concurrent user license
-Login in the ERP
-login in Web POS

if you try to login again in the ERP or in a web POS, the application is going to kill the web pos session. In this way web POS goes to offline mode and it is impossible to work
No tags attached.
related to design defect 0020867 closed alostale Not ERP session counted as concurrent users 
Issue History
2013-05-16 10:52jecharriNew Issue
2013-05-16 10:52jecharriAssigned To => marvintm
2013-05-16 10:52jecharriResolution time => 1368741600
2013-05-16 11:01jecharriSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=4722#r4722
2013-05-16 11:14alostaleRelationship addedrelated to 0020867
2013-05-16 11:20alostaleNote Added: 0058670
2013-05-16 11:22alostaleProjectRetail Modules => Openbravo ERP
2013-05-16 11:28alostaleAssigned Tomarvintm => alostale
2013-05-16 11:28alostaleModules => Core
2013-05-16 11:28alostaleTriggers an Emergency Pack => No
2013-05-16 11:28alostaleCategoryWeb POS => C. Security
2013-05-16 11:28alostaleversionRMP22 =>
2013-05-16 11:28alostaleTarget VersionRMP23 =>
2013-05-16 11:41alostaleNote Added: 0058671
2013-05-16 11:41alostaleNote Edited: 0058671bug_revision_view_page.php?bugnote_id=0058671#r4724
2013-05-16 11:41alostaleReview Assigned To => marvintm
2013-05-16 11:42hgbotCheckin
2013-05-16 11:42hgbotNote Added: 0058672
2013-05-16 11:42hgbotStatusnew => resolved
2013-05-16 11:42hgbotResolutionopen => fixed
2013-05-16 11:42hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cbb22f04e9d7ddca7ff9051a1306578366f8df1f [^]
2013-05-16 18:24marvintmStatusresolved => closed
2013-05-23 01:33hudsonbotCheckin
2013-05-23 01:33hudsonbotNote Added: 0058821

Notes
(0058670)
alostale   
2013-05-16 11:20   
In backend the problem is as follows:

Mobile sessions are not updated with ping time. In case the maximum number of concurrent users has been reached in backed and an additional one tries to login, active sessions with old ping time or without it at all are considered as expired ones and they are killed to free the count of concurrent users. As mobile sessions don't have this ping, they are killed.
(0058671)
alostale   
2013-05-16 11:41   
Executed test cases.

Activate instance with a license allowing 1 concurrent user.

* Case 1
  - Log in POS
  - Log in ERP -> This second user is accepted without problem
  - Check POS session is still alive (no offline) -> This was what was perceived before the fix
  - Try to log in again in ERP with a user without Sys Admin role -> It is not allowed due to maximum number of concurrent users reached
  - Try to log in with a user with Sys Admin role -> A message is shown before allowing to continue login, only Sys Admin role can be used by this session

* Case 2
  - Log in POS with 2 sessions -> Several sessions are allowed for POS
  - Log in ERP -> It is allowed as POS sessions don't interfere with ERP ones
  - Check POS sessions are still alive
  

Regression risk of this fix is minimal

(0058672)
hgbot   
2013-05-16 11:42   
Repository: erp/devel/pi
Changeset: cbb22f04e9d7ddca7ff9051a1306578366f8df1f
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu May 16 11:32:43 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/cbb22f04e9d7ddca7ff9051a1306578366f8df1f [^]

fixed bug 23831: mobile sessions are killed when user limit is reached in erp

---
M src/org/openbravo/erpCommon/obps/ActivationKey.java
---
(0058821)
hudsonbot   
2013-05-23 01:33   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/97c7f6256af7 [^]

Maturity status: Test