Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032925Retail ModulesWeb POSpublic2016-05-10 19:162016-05-17 19:07
marvintm 
Retail 
normalmajorhave not tried
closedfixed 
5
 
RR16Q1.2RR16Q1.2 
marvintm
Production - Confirmed Stable
2015-09-29
RR15Q4
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/53d6ce968da4f824e98a638257379a31da609f97 [^]
No
0032925: Web POS never comes back after it has gone offline
The Web POS should automatically detect that connection came back after being offline, and should either initiate an automatic synchronization of the data in case the session is still valid, or prompt the user to log in again if it's not.

However, instead, nothing happens, and the Web POS never detects that connection came back until the user manually refreshes the browser.
- Log in online mode in the Web POS.
- Stop tomcat.
- Complete a ticket. Here the Web POS correctly detects that it is offline.
- Start tomcat again.
- Wait more than one minute. Nothing happens (this is wrong, as the Web POS should have been detected that connection came back)
- Try to do a ticket. Even in this case, nothing happens.


Another different flow which also doesn't work:
- Log in the Web POS while being online
- Disable connection
- Create a ticket.
- Enable connection.
- After some time, the ticket should be automatically sent to the backend. However, this doesn't happen.
- If you create a second ticket while being offline, however, it seems both the first and second are sent.
No tags attached.
blocks defect 0032920 closed migueldejuana Web POS never comes back after it has gone offline 
Issue History
2016-05-11 10:59marvintmTypedefect => backport
2016-05-11 10:59marvintmTarget Version => RR16Q1.3
2016-05-16 15:31migueldejuanaNote Added: 0086469
2016-05-16 15:31migueldejuanaStatusscheduled => resolved
2016-05-16 15:31migueldejuanaResolutionopen => fixed
2016-05-16 16:22migueldejuanaTarget VersionRR16Q1.3 => RR16Q1.2
2016-05-17 19:07marvintmReview Assigned To => marvintm
2016-05-17 19:07marvintmStatusresolved => closed
2016-05-17 19:07marvintmFixed in Version => RR16Q1.2

Notes
(0086469)
migueldejuana   
2016-05-16 15:31   
Repository: retail/backports/3.0RR16Q1.2/org.openbravo.mobile.core
Changeset: 76ac0af0d497b2e92977589db705076f5f67712d
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon May 16 15:26:59 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q1.2/org.openbravo.mobile.core/rev/76ac0af0d497b2e92977589db705076f5f67712d [^] [^]

Fixed issue 0032925: Web POS never comes back after it has gone offline

- Change offline ping from 5 to 1 minute
- Ping (MobileSessionActive) is always returning false inResponse. The request finish successfully but the response is false. If the session is dead in the server side, a modal will be shown to do login again.

---
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js