Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0043909 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Retail Modules] Web POS | minor | have not tried | 2020-04-30 10:32 | 2020-05-07 09:23 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | Retail | |||||||
Priority | high | Resolution | fixed | Fixed in Version | RR20Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | e3fd020e3292 | ||||
Projection | none | ETA | none | Target Version | RR20Q2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
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 | 0043909: 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 | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0119550) hgbot (developer) 2020-05-05 10:33 |
Repository: retail/backports/3.0RR20Q2/org.openbravo.mobile.core Changeset: e3fd020e3292e7bb54b76730a98252a176c466e6 Author: Miguel de Juana <miguel.dejuana <at> openbravo.com> Date: Tue May 05 10:33:04 2020 +0200 URL: http://code.openbravo.com/retail/backports/3.0RR20Q2/org.openbravo.mobile.core/rev/e3fd020e3292e7bb54b76730a98252a176c466e6 [^] Fixed issue 0043909: Error when login into WebPOS having messages pending to synchronize in the state - Wait to create Messages listener until the database is created (listener do a write, so it needs to have the database created) - In case doing a put of a message fails, do not block next executions of onMessageChanged --- M web/org.openbravo.mobile.core/app/model/synchronization-buffer/MessageModelController.js M web/org.openbravo.mobile.core/app/model/synchronization-buffer/SynchronizationBuffer.js M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js --- |
![]() |
|||
Date Modified | Username | Field | Change |
2020-04-30 10:59 | caristu | Type | defect => backport |
2020-04-30 10:59 | caristu | Target Version | => RR20Q2 |
2020-04-30 16:44 | caristu | Proposed Solution updated | |
2020-05-05 10:26 | migueldejuana | Relationship added | has duplicate 0043931 |
2020-05-05 10:33 | hgbot | Checkin | |
2020-05-05 10:33 | hgbot | Note Added: 0119550 | |
2020-05-05 10:33 | hgbot | Status | scheduled => resolved |
2020-05-05 10:33 | hgbot | Resolution | open => fixed |
2020-05-05 10:33 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/retail/backports/3.0RR20Q2/org.openbravo.mobile.core/rev/e3fd020e3292e7bb54b76730a98252a176c466e6 [^] |
2020-05-07 09:23 | marvintm | Review Assigned To | => marvintm |
2020-05-07 09:23 | marvintm | Status | resolved => closed |
2020-05-07 09:23 | marvintm | Fixed in Version | => RR20Q2 |
Copyright © 2000 - 2009 MantisBT Group |