Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041457Retail ModulesWeb POSpublic2019-07-25 17:552023-10-06 08:59
adrianromero 
javierRodriguez 
urgentmajorhave not tried
closedfixed 
5
 
RR19Q4 
marvintm
No
0041457: Failed to load Application Cache in login
When login the application the message "Failed to load Application Cache" appears. After pressing OK the application continues loading
Open a Guest window or clean completely the cache.
Go to https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=VBS-1 [^]
Log in as Vallblanca and observe the message "Failed to load Application Cache" appears.

The reason is because this changeset breaks the service workers cache. -> https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ce9737beff16#l3.16 [^]

But the origin of the issue and what has to be fixed is the following code -> https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/web/org.openbravo.mobile.core/source/offline/ob-sources-sw.js#l68 [^]
No tags attached.
Issue History
2019-07-25 17:55adrianromeroNew Issue
2019-07-25 17:55adrianromeroAssigned To => javierRodriguez
2019-07-25 17:55adrianromeroTriggers an Emergency Pack => No
2019-07-25 17:56adrianromeroSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19200#r19200
2019-07-29 12:26hgbotCheckin
2019-07-29 12:26hgbotNote Added: 0113690
2019-07-29 12:26hgbotStatusnew => resolved
2019-07-29 12:26hgbotResolutionopen => fixed
2019-07-29 12:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7b2ecb62f7a05d21fcc3ee2dfb01fc0f5e2db509 [^]
2019-08-02 08:49marvintmReview Assigned To => marvintm
2019-08-02 08:49marvintmStatusresolved => closed
2019-08-02 08:49marvintmFixed in Version => RR19Q4
2020-01-12 18:00eugeniIssue Monitored: eugeni
2023-10-06 08:59alikeplanningNote Added: 0155600

Notes
(0113690)
hgbot   
2019-07-29 12:26   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 7b2ecb62f7a05d21fcc3ee2dfb01fc0f5e2db509
Author: Javier Rodriguez <javier.rodriguez <at> openbravo.com>
Date: Mon Jul 29 12:25:38 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7b2ecb62f7a05d21fcc3ee2dfb01fc0f5e2db509 [^]

Fixed issue 41457: Failed to load Application Cache in login

there was an issue when Service workers tries to replace '../../' from some routes.
If there was that pattern inside a route it would be removed and it could be a wrong path.

Now, it will be removed if that pattern is at the beginning of the path.

---
M web/org.openbravo.mobile.core/source/offline/ob-sources-sw.js
---
(0155600)
alikeplanning   
2023-10-06 08:59   
test oke and reviews good
contact: https://drivingmad.io [^]