Openbravo Issue Tracking System - Modules
View Issue Details
0051222ModulesAdvanced Warehouse Operationspublic2022-12-21 13:482023-05-29 13:14
cberner 
Triage Omni WMS 
normalcriticalhave not tried
newopen 
5
 
 
0051222: scanEvents and selectedLine data is currently persisted in localStorage and never removed
When we scan an item from Inventory Count or Distribution Order(as examples), a scan event is saved in localStorage under the key "scanEvents". This events are saved per document and are never removed from the local storage, not even when the document has been completed/processed.

This will result in problems if the terminal is used long enough, as the localStorage usage will keep growing until it reaches the limit(5MB in chrome). And when that limit is reached, the state persistence will start failing, as it is also saved in local storage. Which might result in application not working properly.

Also, when a document is opened and a line is selected, an entry is added to localstorage "selectedLine" property, which only increases and is never removed.
## Prior, assign some UPC/EAN to a product so it is scaneable
1. Login AWO
2. Go to Count(Inventory Count) and start the counting process
3. Try to scan some items

After scan, check in devtools: Application -> LocalStorage -> scanEvents, you should be able to see some events there.

Try to complete the inventory count, and see that the events are still there.

Also check the selectedLine localstorage property, it gets bigger the more documents you open with a line selected: OB.UTIL.localStorage.getItem('selectedLine');
No tags attached.
Issue History
2022-12-21 13:48cbernerNew Issue
2022-12-21 13:48cbernerAssigned To => Triage Omni WMS
2022-12-22 09:24cbernerSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25291#r25291
2023-01-13 10:59cbernerSummaryscanEvents data is currently persisted in localStorage and never removed => scanEvents and selectedLine data is currently persisted in localStorage and never removed
2023-01-13 10:59cbernerDescription Updatedbug_revision_view_page.php?rev_id=25387#r25387
2023-01-13 10:59cbernerSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25388#r25388
2023-05-29 13:14AugustoMauchNote Added: 0150411
2023-05-29 13:14AugustoMauchSeveritymajor => critical
2023-05-29 13:17AugustoMauchNote Edited: 0150411bug_revision_view_page.php?bugnote_id=0150411#r26150

Notes
(0150411)
AugustoMauch   
2023-05-29 13:14   
(edited on: 2023-05-29 13:17)
Upgrade to critical because the memory leak can render the application unusable, specially if the same terminal is used both for AWO and POS