Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040311Retail ModulesWeb POSpublic2019-02-19 15:152019-03-05 10:44
marvintm 
migueldejuana 
urgentmajoralways
closedfixed 
5
 
RR19Q1RR19Q1 
guilleaer
No
0040311: WebPOS should go to offline if server responds 404
Currently if the server responds with a 401 with a request directed to the main mobile web service, the WebPOS automatically switches to offline mode. However, the same thing doesn't happen when the response is 404 instead.

This should normally not happen, but in some unlikely cases like the following issue:

https://issues.openbravo.com/view.php?id=40211 [^]

It might happen that a 404 response is generated. In those cases it is clear that the server is misbehaving, and that the proper thing to do is to switch to offline mode.
Generate a 404 response from the main mobile web server, and verify that the WebPOS doesn't properly switch to offline.
No tags attached.
blocks defect 0040238 closed migueldejuana WebPOS should go to offline if server responds 404 
Issue History
2019-03-04 20:15migueldejuanaTypedefect => backport
2019-03-04 20:15migueldejuanaTarget Version => RR19Q1
2019-03-04 20:16hgbotCheckin
2019-03-04 20:16hgbotNote Added: 0110208
2019-03-04 20:16hgbotStatusscheduled => resolved
2019-03-04 20:16hgbotResolutionopen => fixed
2019-03-04 20:16hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ea902aa4d98f5abcfe9bbfccc828681c1627e5c4 [^] => http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.mobile.core/rev/8f9ac755c0d84ba0b5b26199badf5adf4587a0aa [^]
2019-03-04 20:17hgbotCheckin
2019-03-04 20:17hgbotNote Added: 0110209
2019-03-04 20:17hgbotFixed in SCM revisionhttp://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.mobile.core/rev/8f9ac755c0d84ba0b5b26199badf5adf4587a0aa [^] => http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal/rev/7a332604af19b3359c55ca92cbdc00830999da22 [^]
2019-03-05 10:43guilleaerReview Assigned To => guilleaer
2019-03-05 10:43guilleaerStatusresolved => closed
2019-03-05 10:44guilleaerFixed in Version => RR19Q2
2019-03-05 10:44guilleaerFixed in VersionRR19Q2 => RR19Q1

Notes
(0110208)
hgbot   
2019-03-04 20:16   
Repository: retail/backports/3.0RR19Q1/org.openbravo.mobile.core
Changeset: 8f9ac755c0d84ba0b5b26199badf5adf4587a0aa
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon Mar 04 20:16:18 2019 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.mobile.core/rev/8f9ac755c0d84ba0b5b26199badf5adf4587a0aa [^]

Fixed issue 0040311: WebPOS should go to offline if server responds 404

- Do not mark datasourceLoadFailed as true if we get 404 to be able to do login offline
- Do not mark datasourceLoadFailed as true if we get 500 to be able to do login offline

---
M web/org.openbravo.mobile.core/source/data/ob-datasource.js
---
(0110209)
hgbot   
2019-03-04 20:17   
Repository: retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal
Changeset: 7a332604af19b3359c55ca92cbdc00830999da22
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon Mar 04 20:16:56 2019 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal/rev/7a332604af19b3359c55ca92cbdc00830999da22 [^]

Fixed issue 0040311: WebPOS should go to offline if server responds 404

- Do not mark datasourceLoadFailed as true if we get 500 to be able to do login offline

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---