Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038501Retail ModulesWeb POSpublic2018-05-08 09:562018-06-04 12:05
jorgewederago 
marvintm 
highmajoralways
closedfixed 
5
 
 
migueldejuana
No
0038501: WebPOS is not automatically loading new resources added to the css until a clear cache is done
When changing any resource in the css for the WebPOS it is needed to clear the cache to have the new resource loaded.
1.- Open a WebPOS and check that the icon for delete ticket is correctly showed
2.- Open a development environment
3.- Go to org.openbravo.mobile.core/web/org.openbravo.mobile.core/assets/css
4.- Open ob-standard.css
5.- Change the image type for iconDelete from png to jpg
6.- Go to org.openbravo.mobile.core/web/org.openbravo.mobile.core/assets/img
7.- Change the image for iconDelete for a jpg one
8.- Save the changes and execute a compile.complete.deploy in the environment
9.- Refresh the first instance of WebPOS and check that the delete image still the same
10.- Open an incognito window and load into the same WebPOS.
11.- The new image will be displayed
No tags attached.
related to defect 0038602 closed migueldejuana POS does not load xml changes 
Issue History
2018-05-08 09:56jorgewederagoNew Issue
2018-05-08 09:56jorgewederagoAssigned To => Retail
2018-05-08 09:56jorgewederagoResolution time => 1527544800
2018-05-08 09:56jorgewederagoTriggers an Emergency Pack => No
2018-05-31 09:22marvintmAssigned ToRetail => marvintm
2018-05-31 09:22marvintmStatusnew => scheduled
2018-06-01 11:28hgbotCheckin
2018-06-01 11:28hgbotNote Added: 0104865
2018-06-01 11:28hgbotStatusscheduled => resolved
2018-06-01 11:28hgbotResolutionopen => fixed
2018-06-01 11:28hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/036394bd8cd86329e2d0f95d5533bc08c987597c [^]
2018-06-01 13:43migueldejuanaReview Assigned To => migueldejuana
2018-06-01 13:43migueldejuanaNote Added: 0104878
2018-06-01 13:43migueldejuanaStatusresolved => closed
2018-06-04 12:05jorgewederagoIssue Monitored: jorgewederago
2018-06-07 12:19marvintmRelationship addedrelated to 0038602

Notes
(0104865)
hgbot   
2018-06-01 11:28   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 036394bd8cd86329e2d0f95d5533bc08c987597c
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu May 31 09:47:36 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/036394bd8cd86329e2d0f95d5533bc08c987597c [^]

Fixed issue 38501. Now css resources will be correctly updated. Two main changes have been made:
- Moved generation of the eTag in the MobileCoreComponentServlet to after the component has been generated. This ensures that the eTag is consistently generated from the css resources content, instead of just being a random number.
- Added the eTag to the manifest definition. This ensures that an AppCache update event is triggered the moment any css file is changed.

---
M src/org/openbravo/mobile/core/MobileCoreApplicationCacheComponent.java
M src/org/openbravo/mobile/core/MobileCoreComponentServlet.java
M src/org/openbravo/mobile/core/templates/cache-manifest.ftl
---
(0104878)
migueldejuana   
2018-06-01 13:43   
Tested and reviewed