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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0043931
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSminorhave not tried2020-04-30 10:322020-05-05 10:26
ReportercaristuView Statuspublic 
Assigned Tomigueldejuana 
PriorityhighResolutionduplicateFixed in Version
StatusclosedFix in branchFixed in SCM revision707f200bda83
ProjectionnoneETAnoneTarget VersionRR20Q2
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomigueldejuana
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0043931: Error when login into WebPOS having messages pending to synchronize in the state

DescriptionIf 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 Reproduce0) 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 SolutionEnsure that we save the pending messages once the IndexedDB database is ready
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
duplicate of backport 0043909RR20Q2 closedRetail Error when login into WebPOS having messages pending to synchronize in the state 
blocks defect 0043907 closedmigueldejuana Error when login into WebPOS having messages pending to synchronize in the state 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2020-05-05 10:25 migueldejuana Type defect => backport
2020-05-05 10:25 migueldejuana Target Version => RR20Q2
2020-05-05 10:26 migueldejuana Review Assigned To => migueldejuana
2020-05-05 10:26 migueldejuana Relationship added duplicate of 0043909
2020-05-05 10:26 migueldejuana Status scheduled => closed
2020-05-05 10:26 migueldejuana Resolution open => duplicate


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker