Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030883Retail ModulesAging Balance Reportpublic2015-09-22 00:132015-10-30 12:49
rbianchini 
marvintm 
normalmajoralways
closedfixed 
5
 
RR16Q1 
guilleaer
No
0030883: Restrict User to a Single Login Instance not working for Pos and Backoffice
Restrict User to a Single Login Instance not working for POS and Backoffice
1. Set login.limit.user.session in Openbravo.properties file to true
2. Compile and restart tomcat
3. Log in to OB full desktop interface with User1
4. Attempt to log into mobile application with User 1
5. Receive the attached error message [OK] - as expected per the properties setting
6. Click OK button
7. Expect OB to end the other session (from 3 above), but that session remains logged on
No tags attached.
Issue History
2015-09-22 00:13rbianchiniNew Issue
2015-09-22 00:13rbianchiniAssigned To => Triage Finance
2015-09-22 00:13rbianchiniModules => Core
2015-09-22 00:13rbianchiniResolution time => 1443063600
2015-09-22 00:13rbianchiniTriggers an Emergency Pack => No
2015-09-23 13:31vmromanosAssigned ToTriage Finance => platform
2015-09-23 16:04alostaleAssigned Toplatform => Retail
2015-10-13 17:40OrekariaStatusnew => acknowledged
2015-10-13 17:43OrekariaStatusacknowledged => scheduled
2015-10-13 17:45OrekariaNote Added: 0080986
2015-10-13 17:45OrekariaStatusscheduled => feedback
2015-10-15 17:04rbianchiniReview Assigned To => Orekaria
2015-10-15 17:04rbianchiniNote Added: 0081047
2015-10-15 17:04rbianchiniStatusfeedback => new
2015-10-15 17:04rbianchiniSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=9698#r9698
2015-10-26 10:45OrekariaStatusnew => acknowledged
2015-10-26 10:45OrekariaStatusacknowledged => scheduled
2015-10-26 10:46OrekariaStatusscheduled => resolved
2015-10-26 10:46OrekariaFixed in Version => main
2015-10-26 10:46OrekariaFixed in SCM revision => adfasd
2015-10-26 10:46OrekariaResolutionopen => fixed
2015-10-26 10:46marvintmStatusresolved => feedback
2015-10-26 10:46marvintmStatusfeedback => new
2015-10-26 11:15marvintmProjectOpenbravo ERP => Retail Modules
2015-10-27 10:08OrekariaStatusnew => scheduled
2015-10-27 10:08OrekariaAssigned ToRetail => marvintm
2015-10-27 10:35hgbotCheckin
2015-10-27 10:35hgbotNote Added: 0081339
2015-10-27 10:35hgbotStatusscheduled => resolved
2015-10-27 10:35hgbotFixed in SCM revisionadfasd => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8e517c8e2c1c92efc95045b6f1d57c437044b7c1 [^]
2015-10-30 09:46marvintmReview Assigned ToOrekaria => guilleaer
2015-10-30 09:46marvintmResolution time1443063600 => 1443045600
2015-10-30 09:46marvintmCategory01. General setup => Aging Balance Report
2015-10-30 09:46marvintmversion3.0PR15Q2.4 =>
2015-10-30 12:49guilleaerStatusresolved => closed
2015-10-30 12:49guilleaerFixed in Versionmain => RR16Q1

Notes
(0080986)
Orekaria   
2015-10-13 17:45   
There is no way for the webpos to know that other session has been created
The only way to achieve unique sessions is with the secure terminal feature activated
If required, please ask the Retail team for further information
(0081047)
rbianchini   
2015-10-15 17:04   
According to the following documentation:
http://wiki.openbravo.com/wiki/Openbravo.properties [^]
|
--> login.limit.user.session: If true, prevents concurrent sessions for the same user. If when log in there is an active session for the same user, existent session will be deactivated.

So, If i have an active session on ERP and I try to login on webPOS, i'll get the following message:
"There is another session active using this username. It might be that you recently closed the browser without logging out. Do you want to end the ither session?"

When you click the OK button, you'll expect that the ERP session ends. But, this is not the actual behavior.
The ERP and the POS remains logged.
(0081339)
hgbot   
2015-10-27 10:35   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 8e517c8e2c1c92efc95045b6f1d57c437044b7c1
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon Oct 26 18:50:53 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8e517c8e2c1c92efc95045b6f1d57c437044b7c1 [^]

Fixed issue 30883. Changed the way login works with login.limit.user.session option in Openbravo.properties:
- Now if this option is enabled, if the backend responds with the corresponding error, a popup will be shown.
- With this popup the user can choose whether to close the existing session and do login, or cancel the operation.

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---