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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0046938
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2021-06-01 18:422021-06-02 16:03
Reportergorka_gilView Statuspublic 
Assigned Togorka_gil 
PrioritynormalResolutionfixedFixed in VersionRR21Q3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0046938: error when updating sources - pos1

DescriptionServing in production mode

1. Login pos
2. Update sources and deploy
3. Reload pos
  -> ERROR: check console

Error: Cannot drop database POS_state because request is blocked
    at IDBOpenDBRequest.<anonymous>
Steps To Reproduce-
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0046831 closedgorka_gil POS2 error when updating sources 
depends on backport 0046960RR21Q2.1 closedgorka_gil Retail Modules error when updating sources - pos1 
depends on backport 0046961RR21Q1.3 closedgorka_gil Retail Modules error when updating sources - pos1 
depends on backport 0046962RR20Q4.5 closedgorka_gil Retail Modules error when updating sources - pos1 

-  Notes
(0128883)
hgbot (developer)
2021-06-01 18:56

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/229 [^]
(0128947)
hgbot (developer)
2021-06-02 16:03

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: c2dd367a8d387b605e3669e3796b0103caec37cd
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 2021-06-01T18:46:18+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/c2dd367a8d387b605e3669e3796b0103caec37cd [^]

Fix ISSUE-46938: delete the state on sources update in a better way - pos1

Make use of the api to reset the state

It is the more secure way to delete the state, removing a property of localstorage,
after the reload, the ram is deleted so the state of the ram is lost.
Then it will try to reload the state from disk, but before do that, will check if the
localstorage property exists and if not, will delete the disk state db before try to
load it.

In this way we don't try to delete a running state and there is no race conditions that
can cause problems.

Other discarded options:

a) With indexeddb api, delete the db of the state:
  const persistenceDB = new OB.App.Class.IndexedDBController('state');
  persistenceDB.deleteDatabase().finally(() => {
    window.location.reload();
  });
  - Problem: it deletes an db is use, gives an error that can not be deleted,
  but in any case looks like working, but doesn't look to have the error,
  also doesn't give security that will work always. Also doesn't ensure that
  after delete and before the reload the db is saved again

---
M web/org.openbravo.mobile.core/source/offline/ob-fetch-manifest.js
---
(0128948)
hgbot (developer)
2021-06-02 16:03

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/229 [^]

- Issue History
Date Modified Username Field Change
2021-06-01 18:42 gorka_gil New Issue
2021-06-01 18:42 gorka_gil Assigned To => gorka_gil
2021-06-01 18:42 gorka_gil Triggers an Emergency Pack => No
2021-06-01 18:43 gorka_gil Summary error when updating sources => error when updating sources - pos1
2021-06-01 18:43 gorka_gil Description Updated View Revisions
2021-06-01 18:44 gorka_gil Relationship added related to 0046831
2021-06-01 18:44 gorka_gil Status new => acknowledged
2021-06-01 18:56 hgbot Note Added: 0128883
2021-06-02 13:54 gorka_gil Status acknowledged => scheduled
2021-06-02 16:03 hgbot Note Added: 0128947
2021-06-02 16:03 hgbot Note Added: 0128948
2021-06-02 16:03 marvintm Status scheduled => resolved
2021-06-02 16:03 marvintm Fixed in Version => RR21Q3
2021-06-02 16:03 marvintm Resolution open => fixed
2021-06-02 16:03 marvintm Review Assigned To => marvintm
2021-06-02 16:03 marvintm Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker