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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0043990
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminoralways2020-05-07 17:482020-05-21 10:22
ReporterjarmendarizView Statuspublic 
Assigned Tojarmendariz 
PrioritynormalResolutionfixedFixed in VersionRR20Q3
StatusclosedFix in branchFixed in SCM revision2f2f963b3ced
ProjectionnoneETAnoneTarget VersionRR20Q3
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

0043990: Application State is not cleared up when switching terminal or unlinking a terminal

DescriptionWhen application sources changes, all pending messages are sent and all storage (localstorage, indexedDB and state) are cleared up.
This same behavior should be expected when switching to another terminal or, when
terminal authentication is enabled, when terminal is unlinked of a physical device.
Steps To Reproduce- In backoffice, with role "White Valley Group Admin", set Preference "Terminal Log Synchronization Interval in seconds" to a high value, for example: 10000

Now in WebPOS:
- Login in the VBS-1 terminal
- Using the JS Console in the developer tools, write a log line:
  OB.info('a log from VBS-1')
- Check that this log is saved in the application State. Execute the following line:
  OB.App.State.getState().TerminalLog.events.find(ev => ev.m && ev.m.includes('VBS-1'))
- The output of this command should return an object with the log message:
{d: 1588864904515, o: true, t: "l", m: "a log from VBS-1 terminal; stackTrace: <anonymous>:1:4", l: "Info", …}

- Now switch to another terminal, like VBS1001
- Once logged in, run the same command above to find our saved log message
- Check that this command still returns the same TerminalLog entry, meaning that the State wasn't cleared up.
 
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0119866)
hgbot (developer)
2020-05-14 12:05

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 2f2f963b3ced4ff10f59396819140241e900c113
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Tue May 12 10:41:33 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2f2f963b3ced4ff10f59396819140241e900c113 [^]

Fixed BUG-43990: State is not reset when switching to another terminal

Added an item in localStorage to check that the state should be reloaded by a terminal change
and/or a device unlink. To do this refresh we purge the backup in the IndexedDB database.

---
M web-test/base/fake-redux.js
M web-test/base/ob-app.js
M web-test/model/application-state/StatePersistence.functional.test.js
M web-test/model/application-state/StatePersistence.test.js
M web/org.openbravo.mobile.core/app/model/application-state/StatePersistence.js
M web/org.openbravo.mobile.core/source/utils/ob-localStorage.js
---
(0119867)
hgbot (developer)
2020-05-14 12:06

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 623414952725feb73912bb959b15522ba4f120be
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Tue May 12 10:44:31 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/623414952725feb73912bb959b15522ba4f120be [^]

Related to BUG-43990: Ensure localstorage is clear when terminal is unlinked with device

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---

- Issue History
Date Modified Username Field Change
2020-05-07 17:48 jarmendariz New Issue
2020-05-07 17:48 jarmendariz Assigned To => jarmendariz
2020-05-07 17:48 jarmendariz Triggers an Emergency Pack => No
2020-05-07 17:49 jarmendariz Status new => scheduled
2020-05-12 17:54 jarmendariz Review Assigned To => marvintm
2020-05-14 12:05 hgbot Checkin
2020-05-14 12:05 hgbot Note Added: 0119866
2020-05-14 12:05 hgbot Status scheduled => resolved
2020-05-14 12:05 hgbot Resolution open => fixed
2020-05-14 12:05 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2f2f963b3ced4ff10f59396819140241e900c113 [^]
2020-05-14 12:06 hgbot Checkin
2020-05-14 12:06 hgbot Note Added: 0119867
2020-05-21 10:22 marvintm Status resolved => closed
2020-05-21 10:22 marvintm Fixed in Version => RR20Q3


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker