Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0043167 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | always | 2020-02-10 17:09 | 2020-02-13 17:35 | |||
Reporter | gorka_gil | View Status | public | |||||
Assigned To | gorka_gil | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | RR20Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | ed4d580e8c9c | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | guilleaer | |||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0043167: Dependencies of webpos are cached when it shouldn't | |||||||
Description | When updating the sources of webpos and updating the dependencies, the dependencies gets cached. This blocks the update when there are changes in the dependencies. | |||||||
Steps To Reproduce | - In an instance with no module in development (so service workers is enabled) - access to: http://localhost/openbravo/org.openbravo.mobile.core/OBMOBC_Main/Lib?_id=Deps [^] - Then edit the file: LibraryResource.java - Adding a external lib: EXTERNAL_LIBS.add("xxxxxx"); - Restart tomcat (since is not in development) - Access again to: http://localhost/openbravo/org.openbravo.mobile.core/OBMOBC_Main/Lib?_id=Deps [^] Problem: the result cached and is not updated with the new lib, also in developer tools can be seen that the network request is 304 (not modified) instead 200 | |||||||
Proposed Solution | Change eTag to detect changes | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0117608) gorka_gil (administrator) 2020-02-10 17:13 |
The change is needed in the new instance, not in the old one, so this issue is NOT needed to be backported to old releases. |
(0117629) hgbot (developer) 2020-02-11 11:21 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: ed4d580e8c9c27d3c855f437414931b55dc1872c Author: Gorka Gil <gorka.gil <at> openbravo.com> Date: Mon Feb 10 19:42:19 2020 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ed4d580e8c9c27d3c855f437414931b55dc1872c [^] Fixes BUG-43167: Fix dependencies doesn't update when it has changes Changed the eTag of the libraryResources requests, to instaead use the module version to be always diferent. This is ok because service workers will cache in in the client, and will be only requested in the moment the manifiest change something, and in this case we want to have it always updated. --- M src/org/openbravo/mobile/core/LibraryResource.java --- |
![]() |
|||
Date Modified | Username | Field | Change |
2020-02-10 17:09 | gorka_gil | New Issue | |
2020-02-10 17:09 | gorka_gil | Assigned To | => Retail |
2020-02-10 17:09 | gorka_gil | OBNetwork customer | => No |
2020-02-10 17:09 | gorka_gil | Triggers an Emergency Pack | => No |
2020-02-10 17:11 | gorka_gil | Relationship added | related to 0043163 |
2020-02-10 17:11 | gorka_gil | Relationship added | related to 0041860 |
2020-02-10 17:11 | gorka_gil | Status | new => scheduled |
2020-02-10 17:11 | gorka_gil | Assigned To | Retail => gorka_gil |
2020-02-10 17:13 | gorka_gil | Note Added: 0117608 | |
2020-02-11 11:21 | hgbot | Checkin | |
2020-02-11 11:21 | hgbot | Note Added: 0117629 | |
2020-02-11 11:21 | hgbot | Status | scheduled => resolved |
2020-02-11 11:21 | hgbot | Resolution | open => fixed |
2020-02-11 11:21 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ed4d580e8c9c27d3c855f437414931b55dc1872c [^] |
2020-02-13 17:35 | guilleaer | Review Assigned To | => guilleaer |
2020-02-13 17:35 | guilleaer | Status | resolved => closed |
2020-02-13 17:35 | guilleaer | Fixed in Version | => RR20Q2 |
Copyright © 2000 - 2009 MantisBT Group |