Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037645Retail ModulesWeb POSpublic2018-01-15 18:532018-01-25 15:00
marvintm 
marvintm 
urgentmajoralways
closedfixed 
5
 
RR18Q1RR18Q1 
migueldejuana
No
0037645: LogClient should not be sent if session is not valid
Currently logclient is always sent, even if the WebPOS already detected that session is no longer valid, and that the user must log in again. This wastes network bandwidth, which can in some cases be problematic.

Instead, the process should not be run if the session is not valid, and should only be restarted when the user logs in again.
- Log in the WebPOS, with the "Network" tab in developer tools open.
- Restart tomcat (to force session lost)
- Wait some time.
- At some point, the WebPOS detects that the session is lost, and shows the popup that explains the user that he needs to log in again.
- Wait more time. Check the "Network" tab, and realize that the log client request is still triggered periodically. This doesn't make sense, as it wastes bandwidth without any chance of succeeding.
No tags attached.
blocks defect 0037644 closed marvintm LogClient should not be sent if session is not valid 
Issue History
2018-01-15 18:53marvintmTypedefect => backport
2018-01-15 18:53marvintmTarget Version => RR18Q1
2018-01-22 11:19marvintmAssigned ToRetail => marvintm
2018-01-22 13:59hgbotCheckin
2018-01-22 13:59hgbotNote Added: 0101844
2018-01-22 13:59hgbotStatusscheduled => resolved
2018-01-22 13:59hgbotResolutionopen => fixed
2018-01-22 13:59hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR18Q1/org.openbravo.mobile.core/rev/348db89d5f51cc116e0ced154631fbe5f71ccd76 [^]
2018-01-25 15:00migueldejuanaReview Assigned To => migueldejuana
2018-01-25 15:00migueldejuanaNote Added: 0101943
2018-01-25 15:00migueldejuanaStatusresolved => closed
2018-01-25 15:00migueldejuanaFixed in Version => RR18Q1

Notes
(0101844)
hgbot   
2018-01-22 13:59   
Repository: retail/backports/3.0RR18Q1/org.openbravo.mobile.core
Changeset: 348db89d5f51cc116e0ced154631fbe5f71ccd76
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon Jan 22 13:58:30 2018 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR18Q1/org.openbravo.mobile.core/rev/348db89d5f51cc116e0ced154631fbe5f71ccd76 [^]

Fixed issue 37645. LogClient request will no longer happen if session was lost. Added API to enable/disable log client process, with two main goals:
-Disable the interval when session is lost, to remove unnecessary overhead
-Try to prevent potential duplicate calls to the log client process

---
M web/org.openbravo.mobile.core/source/component/ob-terminal-component.js
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
M web/org.openbravo.mobile.core/source/utils/logClientSyncUtils.js
---
(0101943)
migueldejuana   
2018-01-25 15:00   
Tested and reviewed