Openbravo Issue Tracking System - POS2
View Issue Details
0050588POS2POSpublic2022-10-19 15:072022-12-28 16:23
meriem_azaf 
meriem_azaf 
normalmajorhave not tried
closedfixed 
5
 
23Q1 
No
0050588: Error shown in POS2 after updating the application
When updating the application, if some registered ConfigurationSet has a Masterdata updateFunction that throws an error, a popup will appear showing this error and it will be impossible to login in the POS2 afterwards.
1- Add this line " throw new Error('Test'); " in the function generateKeymapConfigurations.
2- Go to POS2.
3- Refresh the POS2.
4- Login.

An error shown.
No tags attached.
depends on backport 005074322Q4.1 closed meriem_azaf Error shown in POS2 after updating the application 
depends on backport 005074422Q3.3 closed meriem_azaf Error shown in POS2 after updating the application 
related to defect 0051234 closed meriem_azaf Cannot read properties of undefined (find) -> infinite loop and chrome crashes 
png Screenshot from 2022-10-19 15-06-59.png (88,391) 2022-10-19 15:07
https://issues.openbravo.com/file_download.php?file_id=17685&type=bug
png

png Screenshot from 2022-10-19 13-32-59.png (14,054) 2022-10-19 15:07
https://issues.openbravo.com/file_download.php?file_id=17686&type=bug
png

png Selection_996.png (69,431) 2022-10-19 16:34
https://issues.openbravo.com/file_download.php?file_id=17687&type=bug
png
Issue History
2022-10-19 15:07meriem_azafNew Issue
2022-10-19 15:07meriem_azafAssigned To => Retail
2022-10-19 15:07meriem_azafFile Added: Screenshot from 2022-10-19 15-06-59.png
2022-10-19 15:07meriem_azafTriggers an Emergency Pack => No
2022-10-19 15:07meriem_azafFile Added: Screenshot from 2022-10-19 13-32-59.png
2022-10-19 15:08meriem_azafAssigned ToRetail => meriem_azaf
2022-10-19 15:08meriem_azafStatusnew => scheduled
2022-10-19 16:27meriem_azafSummaryError shown in POS2 when we throw an exception in generateKeymapConfigurations function => Error shown in POS2 after updating the application
2022-10-19 16:27meriem_azafDescription Updatedbug_revision_view_page.php?rev_id=24931#r24931
2022-10-19 16:28meriem_azafDescription Updatedbug_revision_view_page.php?rev_id=24932#r24932
2022-10-19 16:31meriem_azafDescription Updatedbug_revision_view_page.php?rev_id=24933#r24933
2022-10-19 16:34guilleaerFile Added: Selection_996.png
2022-10-20 08:41meriem_azafDescription Updatedbug_revision_view_page.php?rev_id=24941#r24941
2022-10-20 16:53hgbotNote Added: 0142366
2022-11-07 08:34guilleaerStatusscheduled => acknowledged
2022-11-07 08:34guilleaerStatusacknowledged => scheduled
2022-12-15 04:53hgbotResolutionopen => fixed
2022-12-15 04:53hgbotStatusscheduled => closed
2022-12-15 04:53hgbotNote Added: 0144722
2022-12-15 04:53hgbotFixed in Version => 23Q1
2022-12-15 04:53hgbotNote Added: 0144723
2022-12-23 10:20jarmendarizRelationship addedrelated to 0051234
2022-12-28 16:23guilleaerNote Added: 0145059

Notes
(0142366)
hgbot   
2022-10-20 16:53   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/882 [^]
(0144722)
hgbot   
2022-12-15 04:53   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/882 [^]
(0144723)
hgbot   
2022-12-15 04:53   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: a5f615abae0b3fd375168853c6397d605eb4d14d
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 15-12-2022 04:47:01
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/a5f615abae0b3fd375168853c6397d605eb4d14d [^]

Fixes ISSUE-50588: Error shown in POS2 after updating the application

When updating the application, if some registered ConfigurationSet has a Masterdata updateFunction that throws an error, a popup will appear showing this error and it will be impossible
to login in the POS2 afterwards.

To fix this, we added a try catch to handle this problem if we have an error it will not break the application and the error will be shown in the console.

---
M web-jspack/org.openbravo.core2/src/core/ConfigurationSet.js
M web-jspack/org.openbravo.core2/src/core/Registry.js
---
(0145059)
guilleaer   
2022-12-28 16:23   
New mantis created related with this one:
https://issues.openbravo.com/view.php?id=51234 [^]

The error is shown but still terminal remains unusable