Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032920Retail ModulesWeb POSpublic2016-05-10 19:162017-01-16 13:04
marvintm 
migueldejuana 
normalmajorhave not tried
closedfixed 
5
 
RR16Q3 
marvintm
Production - Confirmed Stable
2015-10-14
RR15Q4
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/b6133ebf807a46726599f76219402df44e8c0491#l1.10 [^]
No
0032920: 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.
depends on backport 0032924RR16Q2 closed Retail Web POS never comes back after it has gone offline 
depends on backport 0032925RR16Q1.2 closed Retail Web POS never comes back after it has gone offline 
related to feature request 0032680RR16Q3 closed mtaal Retry several times when a request to a server fails before setting server as offline 
Issue History
2016-05-10 19:16marvintmNew Issue
2016-05-10 19:16marvintmAssigned To => Retail
2016-05-10 19:16marvintmTriggers an Emergency Pack => No
2016-05-10 19:17marvintmRegression level => Production - Confirmed Stable
2016-05-10 19:17marvintmRegression date => 2015-09-29
2016-05-10 19:17marvintmRegression introduced in release => RR15Q4
2016-05-10 19:17marvintmRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/53d6ce968da4f824e98a638257379a31da609f97 [^]
2016-05-10 20:02marvintmSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=12036#r12036
2016-05-11 10:52OrekariaStatusnew => acknowledged
2016-05-11 10:59marvintmStatusacknowledged => scheduled
2016-05-11 17:00migueldejuanaRegression date2015-09-29 => 2015-10-14
2016-05-11 17:00migueldejuanaRegression introduced by commithttps://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/53d6ce968da4f824e98a638257379a31da609f97 [^] => https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/b6133ebf807a46726599f76219402df44e8c0491#l1.10 [^]
2016-05-11 17:01migueldejuanaAssigned ToRetail => migueldejuana
2016-05-13 19:46hgbotCheckin
2016-05-13 19:46hgbotNote Added: 0086446
2016-05-13 19:46hgbotStatusscheduled => resolved
2016-05-13 19:46hgbotResolutionopen => fixed
2016-05-13 19:46hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/106b1b12d07fa9f722a74cc9b38fb1f3709c925c [^]
2016-05-16 15:27hgbotCheckin
2016-05-16 15:27hgbotNote Added: 0086468
2016-05-16 15:27hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/106b1b12d07fa9f722a74cc9b38fb1f3709c925c [^] => http://code.openbravo.com/retail/backports/3.0RR16Q1.2/org.openbravo.mobile.core/rev/76ac0af0d497b2e92977589db705076f5f67712d [^]
2016-05-23 15:37guilleaerNote Added: 0086668
2016-05-23 15:37guilleaerStatusresolved => new
2016-05-23 15:37guilleaerResolutionfixed => open
2016-05-23 15:37guilleaerStatusnew => scheduled
2016-05-23 16:22migueldejuanaRelationship addedrelated to 0032680
2017-01-16 13:04marvintmStatusscheduled => resolved
2017-01-16 13:04marvintmFixed in Version => RR16Q3
2017-01-16 13:04marvintmResolutionopen => fixed
2017-01-16 13:04marvintmReview Assigned To => marvintm
2017-01-16 13:04marvintmStatusresolved => closed

Notes
(0086446)
hgbot   
2016-05-13 19:46   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 106b1b12d07fa9f722a74cc9b38fb1f3709c925c
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu May 12 08:19:29 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/106b1b12d07fa9f722a74cc9b38fb1f3709c925c [^]

Fixed issue 0032920: 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
---
(0086468)
hgbot   
2016-05-16 15:27   
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 0032920: 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
---
(0086668)
guilleaer   
2016-05-23 15:37   
When connection comes back orders are not sync