Openbravo Issue Tracking System - Retail Modules | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0043907 | Retail Modules | Web POS | public | 2020-04-30 10:32 | 2020-05-07 09:23 | ||||||||||||||
Reporter | caristu | ||||||||||||||||||
Assigned To | migueldejuana | ||||||||||||||||||
Priority | high | Severity | minor | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | RR20Q3 | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | marvintm | ||||||||||||||||||
OBNetwork customer | No | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0043907: Error when login into WebPOS having messages pending to synchronize in the state | ||||||||||||||||||
Description | If we login into WebPOS an there exists messages in the state pending to be synchronized, then the following error is raised when login: 0522af920179e8c1b4896634bd7b7672.js:42453 Uncaught (in promise) TypeError: Cannot read property 'transaction' of null at IndexedDBController.getReadWriteTransaction (0522af920179e8c1b4896634bd7b7672.js:42453) at IndexedDBController.write (0522af920179e8c1b4896634bd7b7672.js:42317) at IndexedDBController.put (0522af920179e8c1b4896634bd7b7672.js:42309) at MessageModelController.put (0522af920179e8c1b4896634bd7b7672.js:44054) at SynchronizationBuffer.onMessagesChanged (0522af920179e8c1b4896634bd7b7672.js:44180) at 0522af920179e8c1b4896634bd7b7672.js:41298 This is because we are trying to save the messages into the synchronization buffer IndexedDB database before it is initialized. | ||||||||||||||||||
Steps To Reproduce | 0) Leave a message pending to be synchronized in the state. For example force an error in the "onMessagesChanged" before executing "OB.App.State.Messages.removeMessages" 1) Login in WebPOS, note that the error mentioned in the Description is raised in the console | ||||||||||||||||||
Proposed Solution | Ensure that we save the pending messages once the IndexedDB database is ready | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=14411&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2020-04-30 10:32 | caristu | New Issue | |||||||||||||||||
2020-04-30 10:32 | caristu | Assigned To | => Retail | ||||||||||||||||
2020-04-30 10:32 | caristu | OBNetwork customer | => No | ||||||||||||||||
2020-04-30 10:32 | caristu | Triggers an Emergency Pack | => No | ||||||||||||||||
2020-04-30 10:47 | caristu | File Added: relatedTo43907.diff | |||||||||||||||||
2020-04-30 10:59 | caristu | Status | new => scheduled | ||||||||||||||||
2020-04-30 16:44 | caristu | Proposed Solution updated | |||||||||||||||||
2020-05-05 10:21 | hgbot | Checkin | |||||||||||||||||
2020-05-05 10:21 | hgbot | Note Added: 0119549 | |||||||||||||||||
2020-05-05 10:21 | hgbot | Status | scheduled => resolved | ||||||||||||||||
2020-05-05 10:21 | hgbot | Resolution | open => fixed | ||||||||||||||||
2020-05-05 10:21 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/707f200bda830d235ae77f17e3c327552f7dede3 [^] | ||||||||||||||||
2020-05-05 10:23 | migueldejuana | Assigned To | Retail => migueldejuana | ||||||||||||||||
2020-05-05 10:23 | migueldejuana | Status | resolved => new | ||||||||||||||||
2020-05-05 10:23 | migueldejuana | Resolution | fixed => open | ||||||||||||||||
2020-05-05 10:25 | migueldejuana | Status | new => scheduled | ||||||||||||||||
2020-05-05 10:25 | migueldejuana | Status | scheduled => resolved | ||||||||||||||||
2020-05-05 10:25 | migueldejuana | Resolution | open => fixed | ||||||||||||||||
2020-05-05 10:25 | migueldejuana | Fixed in Version | => RR20Q3 | ||||||||||||||||
2020-05-07 09:23 | marvintm | Review Assigned To | => marvintm | ||||||||||||||||
2020-05-07 09:23 | marvintm | Status | resolved => closed |
Notes | |||||
|
|||||
|
|