Openbravo Issue Tracking System - POS2
View Issue Details
0052418POS2Corepublic2023-05-11 12:162023-05-11 17:36
caristu 
Triage Platform Base 
highmajorhave not tried
closedduplicate 
5
 
 
No
0052418: Errors in terminal properties are not properly managed in the UI
When there is an error thrown during the calculation of the terminal properties, it is not being properly managed in react POS.

When this happens in enyo pos a dialog is displayed to the user informing about the error (see attached), and after clicking OK to close the dialog the login screen is shown again, preventing the access to the application.

Note that the problem happens when the masterdata is reloaded as part of the login, in that case the exception is catched and logged at this point[1] without providing any feedback in the UI. In case the masterdata is not refreshed during the login, the error information is correctly shown in the UI.

[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/blob/master/web-jspack/org.openbravo.core2/src/core/terminal/TerminalDataMasterdataHooks.js#L54 [^]
1- Apply the attached patch in org.openbravo.retail.posterminal module to force an error during the calculation of the terminal properties
2- Do a fresh login in POS2, the loading gets stuck without information about the error
Manage the error also in the case of the masterdata being refreshed during the login.
No tags attached.
duplicate of defect 0050357 closed meriem_azaf POS2 OnLoginActions do not allow to display UI 
related to design defect 0051088 closed adrianromero Retail Modules [Payment Limit validation] Event payment limit management should be configurable at organization or touchpoint type level 
related to defect 0052271 closed meriem_azaf POS2 Till is blocked if we try to access keymap editor in offline mode - when terminal still does not know that it was offline 
related to design defect 0047591 closed cberner POS2 Terminal model not updated in incremental refresh 
related to defect 0052423 new Triage Platform Base POS2 Too verbose log when an error happens in a terminal property service 
png error-enyo-pos.png (382,826) 2023-05-11 12:16
https://issues.openbravo.com/file_download.php?file_id=18517&type=bug
png error-react-pos.png (12,185) 2023-05-11 12:17
https://issues.openbravo.com/file_download.php?file_id=18518&type=bug
png

png error-react-pos-correct.png (21,703) 2023-05-11 12:29
https://issues.openbravo.com/file_download.php?file_id=18519&type=bug
png

diff forceError.diff (1,090) 2023-05-11 12:33
https://issues.openbravo.com/file_download.php?file_id=18520&type=bug
Issue History
2023-05-11 12:16caristuNew Issue
2023-05-11 12:16caristuAssigned To => Triage Platform Base
2023-05-11 12:16caristuTriggers an Emergency Pack => No
2023-05-11 12:16caristuDescription Updatedbug_revision_view_page.php?rev_id=26071#r26071
2023-05-11 12:16caristuFile Added: error-enyo-pos.png
2023-05-11 12:17caristuFile Added: error-react-pos.png
2023-05-11 12:19caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26073#r26073
2023-05-11 12:26caristuProposed Solution updated
2023-05-11 12:29caristuDescription Updatedbug_revision_view_page.php?rev_id=26074#r26074
2023-05-11 12:29caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26075#r26075
2023-05-11 12:29caristuProposed Solution updated
2023-05-11 12:29caristuFile Added: error-react-pos-correct.png
2023-05-11 12:30caristuRelationship addedrelated to 0051088
2023-05-11 12:33caristuFile Added: forceError.diff
2023-05-11 12:35caristuRelationship addedrelated to 0052271
2023-05-11 12:35caristuRelationship addedrelated to 0047591
2023-05-11 14:13caristuIssue cloned0052423
2023-05-11 14:13caristuRelationship addedrelated to 0052423
2023-05-11 17:36adrianromeroRelationship addedduplicate of 0050357
2023-05-11 17:36adrianromeroStatusnew => closed
2023-05-11 17:36adrianromeroResolutionopen => duplicate

There are no notes attached to this issue.