Openbravo Issue Tracking System - POS2
View Issue Details
0046439POS2Corepublic2021-04-30 12:352021-05-05 07:59
0046439: Reset app state on sources update
Right now the app state is not recreated when sources updates,
this lead sometimes to errors like:
  Cannot read property 'id' of undefined

The state should be reset, deleted and recreated based on new sources.
Needed to be in production mode: in tomcat , so service workers are active
No tags attached.
depends on backport 0046441TAP closed gorka_gil Reset app state on sources update 
has duplicate defect 0046335 closed jmelin JIRA 1748 - Message 'ActionCanceled' on POS after application update 
related to defect 0046498 closed alostale New sources are not updated till doing a reload (F5) in the pos 
related to defect 0046499 closed alostale After updating the sources, the old app can be used for few seconds 
Issue History
2021-04-30 12:35gorka_gilNew Issue
2021-04-30 12:35gorka_gilAssigned To => gorka_gil
2021-04-30 12:35gorka_gilTriggers an Emergency Pack => No
2021-04-30 13:32marvintmStatusnew => scheduled
2021-05-03 09:37guilleaerRelationship addedrelated to 0046335
2021-05-03 09:37guilleaerRelationship replacedhas duplicate 0046335
2021-05-04 17:05hgbotNote Added: 0127775
2021-05-04 18:52gorka_gilRelationship addedrelated to 0046498
2021-05-04 19:01gorka_gilSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22442#r22442
2021-05-04 19:01gorka_gilRelationship addedrelated to 0046499
2021-05-05 07:59hgbotResolutionopen => fixed
2021-05-05 07:59hgbotStatusscheduled => closed
2021-05-05 07:59hgbotNote Added: 0127801
2021-05-05 07:59hgbotNote Added: 0127802

2021-05-04 17:05   
Merge Request created: [^]
2021-05-05 07:59   
Directly closing issue as related merge request is already approved.

Repository: [^]
Changeset: 406acdf1842498a7124a7ad429ae9cdeedd8000a
Author: Gorka Gil <>
Date: 2021-05-05T05:41:15+00:00
URL: [^]

Fixes ISSUE-46439: reset state on sources update

This fix only affect to production (tomcat and service workers)
In development (npm start with no service workers) the state is mantained after update sources

M web-jspack/org.openbravo.core2/src/registerServiceWorker.js
2021-05-05 07:59   
Merge request merged: [^]