Openbravo Issue Tracking System - Retail Modules
View Issue Details
0043366Retail ModulesWeb POSpublic2020-02-28 10:512020-03-06 14:46
marvintm 
ranjith_qualiantech_com 
urgentmajorrandom
closedfixed 
5
 
RR20Q2 
marvintm
No
0043366: Cache manifest doesn't guarantee file order consistency, which can lead to unnecessary sources reloading
Currently the manifest we generate is not guaranteeing the order of the files inside it. In particular, in high availability environments, it could happen that different nodes return different manifests, with the same file list, but in different order.

When this happens, the WebPOS reloads the sources even though the individual files didn't really change.

This doesn't generate any painful functional problem and offline mode continues to work as usual. However, this means that the user needs to wait a little bit more time to use the application, the server is doing more work than it would need to do if this worked correctly, and if bandwidth either in the store or the server is limited, this may lead to performance problems.
-In a high availability environment, load the WebPOS and do login.
- With developer tools open, refresh the page. Notice in the Network tab in dev tools that the sources are retrieved from the cache/service workers.
- Do logout. Check the network again, and notice that the sources are now being loaded from the server instead.

It is not always reproducible, but in our tests it was happening almost always, as the load balancer relies on the cookie to maintain communication with the same node, and whenever the cookie is lost, in many cases it redirects to a different node.
No tags attached.
related to defect 0043363 closed alostale Openbravo ERP unneded requests to StaticResources when working in cluster 
related to design defect 0034490 acknowledged Triage Platform Base Openbravo ERP [clustering] Support clustering 
Issue History
2020-02-28 10:51marvintmNew Issue
2020-02-28 10:51marvintmAssigned To => Retail
2020-02-28 10:51marvintmTriggers an Emergency Pack => No
2020-02-28 10:52marvintmResolution time => 1583449200
2020-02-28 10:53marvintmRelationship addedrelated to 0043363
2020-02-28 11:13alostaleRelationship addedrelated to 0034490
2020-02-28 12:17ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-03-01 06:20ranjith_qualiantech_comStatusnew => scheduled
2020-03-02 03:53hgbotCheckin
2020-03-02 03:53hgbotNote Added: 0118216
2020-03-02 03:53hgbotStatusscheduled => resolved
2020-03-02 03:53hgbotResolutionopen => fixed
2020-03-02 03:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3f5a3133dca466c253aed5c1f028accacd72c44c [^]
2020-03-03 10:02hgbotCheckin
2020-03-03 10:02hgbotNote Added: 0118283
2020-03-03 10:02hgbotCheckin
2020-03-03 10:02hgbotNote Added: 0118284
2020-03-03 10:03marvintmReview Assigned To => marvintm
2020-03-03 10:03marvintmStatusresolved => closed
2020-03-03 10:03marvintmFixed in Version => RR20Q2
2020-03-05 08:54marvintmNote Added: 0118331
2020-03-05 08:54marvintmStatusclosed => new
2020-03-05 08:54marvintmResolutionfixed => open
2020-03-05 08:54marvintmFixed in VersionRR20Q2 =>
2020-03-05 14:01ranjith_qualiantech_comStatusnew => scheduled
2020-03-05 15:06hgbotCheckin
2020-03-05 15:06hgbotNote Added: 0118346
2020-03-05 15:06hgbotStatusscheduled => resolved
2020-03-05 15:06hgbotResolutionopen => fixed
2020-03-05 15:06hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3f5a3133dca466c253aed5c1f028accacd72c44c [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/231dd6f1a08d9c4536f2424cdef1ff0311d4c846 [^]
2020-03-05 18:04marvintmStatusresolved => closed
2020-03-05 18:04marvintmFixed in Version => RR20Q2
2020-03-06 13:40hgbotCheckin
2020-03-06 13:40hgbotNote Added: 0118379
2020-03-06 13:40hgbotStatusclosed => resolved
2020-03-06 13:40hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/231dd6f1a08d9c4536f2424cdef1ff0311d4c846 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/daf8a74e6ffd4d1e22640a9e4f69402c4c04b9fc [^]
2020-03-06 14:46marvintmStatusresolved => closed

Notes
(0118216)
hgbot   
2020-03-02 03:53   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 3f5a3133dca466c253aed5c1f028accacd72c44c
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Mar 02 08:22:52 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3f5a3133dca466c253aed5c1f028accacd72c44c [^]

Fixed ISSUE-43366 : File List should be sorted for Application Cache manifest

---
M src/org/openbravo/mobile/core/MobileCoreApplicationCacheComponent.java
---
(0118283)
hgbot   
2020-03-03 10:02   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 02ca26347381dd408cfe2b426ddc903843a87a7f
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Mar 03 10:02:23 2020 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/02ca26347381dd408cfe2b426ddc903843a87a7f [^]

Related to ISSUE-43366. We also sort app resources.

---
M src/org/openbravo/mobile/core/MobileCoreApplicationCacheComponent.java
---
(0118284)
hgbot   
2020-03-03 10:02   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 037f1c2b2cc0ab3757219030489151a87adbd2f6
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Mar 03 10:02:43 2020 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/037f1c2b2cc0ab3757219030489151a87adbd2f6 [^]

Related to ISSUE-43366. We also sort app resources.

---
M src/org/openbravo/retail/posterminal/ApplicationCacheComponent.java
---
(0118331)
marvintm   
2020-03-05 08:54   
It seems static resources section is not yet fully sorted
(0118346)
hgbot   
2020-03-05 15:06   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 231dd6f1a08d9c4536f2424cdef1ff0311d4c846
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Mar 05 19:35:58 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/231dd6f1a08d9c4536f2424cdef1ff0311d4c846 [^]

Fixed ISSUE-43366 : Asset File List should be sorted for Application Cache manifest

---
M src/org/openbravo/mobile/core/MobileCoreApplicationCacheComponent.java
---
(0118379)
hgbot   
2020-03-06 13:40   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: daf8a74e6ffd4d1e22640a9e4f69402c4c04b9fc
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Mar 06 18:09:47 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/daf8a74e6ffd4d1e22640a9e4f69402c4c04b9fc [^]

Fixed ISSUE-43366 : ModuleName should be sorted for Application Cache manifest

---
M src/org/openbravo/mobile/core/MobileCoreApplicationCacheComponent.java
---