Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0043167
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2020-02-10 17:092020-02-13 17:35
Reportergorka_gilView Statuspublic 
Assigned Togorka_gil 
PriorityurgentResolutionfixedFixed in VersionRR20Q2
StatusclosedFix in branchFixed in SCM revisioned4d580e8c9c
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toguilleaer
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0043167: Dependencies of webpos are cached when it shouldn't

DescriptionWhen 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 SolutionChange eTag to detect changes
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0043163 closedgorka_gil Before update sources the messages should be synchronized 
related to defect 0041860 closedmarvintm Etag is not correctly calculated in ClientModel component 

-  Notes
(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
---

- Issue History
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 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
Powered by Mantis Bugtracker