Openbravo Issue Tracking System - POS2
View Issue Details
0049610POS2POSpublic2022-06-20 17:572023-08-04 10:29
andre_montenegro 
meriem_azaf 
normalminoralways
scheduledopen 
5
pi 
 
No
0049610: [Key Map Editor] Unhandled Rejection full screen error if saving changes and login out
IMPORTANT: This behavior has been reproduced only in Cypress tests.

Whenever any change to the product categories is saved and followed by a log out, POS2 displays (after the log out) a Unhandled Rejection screen with the following message:
 
"Cannot read properties of null (reading 'organization')
- Log in POS
- Click "Store" icon in the lateral bar (5th button)
- Click "Keymap Editor"
- Click "View versions" for Main App Keymap line
- Click "View categories" button from "v1" version
- Click "Create Category"
- Type any name and click "Create"
- Click "Save" button
- Log out
No tags attached.
png UnhandledRejection.png (299,419) 2022-06-20 18:05
https://issues.openbravo.com/file_download.php?file_id=17197&type=bug
? keyMapEditor_modifiedForIssue_49610.spec.js (5,511) 2023-08-02 08:58
https://issues.openbravo.com/file_download.php?file_id=18824&type=bug
png Screenshot_Issue49610_Cypress_Behavior.png (258,348) 2023-08-02 09:02
https://issues.openbravo.com/file_download.php?file_id=18825&type=bug
png
Issue History
2022-06-20 17:57andre_montenegroNew Issue
2022-06-20 17:57andre_montenegroAssigned To => Retail
2022-06-20 17:57andre_montenegroTriggers an Emergency Pack => No
2022-06-20 17:58andre_montenegroSummary[Key Map Editor] Unhandled Rejection just after saving changes => [Key Map Editor] Unhandled Rejection full screen error if saving changes and login out
2022-06-20 18:05andre_montenegroFile Added: UnhandledRejection.png
2023-06-26 15:52AugustoMauchAssigned ToRetail => meriem_azaf
2023-08-02 08:58andre_montenegroFile Added: keyMapEditor_modifiedForIssue_49610.spec.js
2023-08-02 09:02andre_montenegroNote Added: 0153086
2023-08-02 09:02andre_montenegroFile Added: Screenshot_Issue49610_Cypress_Behavior.png
2023-08-02 09:08andre_montenegroNote Edited: 0153086bug_revision_view_page.php?bugnote_id=0153086#r26570
2023-08-03 14:10hgbotNote Added: 0153162
2023-08-04 10:29AugustoMauchStatusnew => scheduled

Notes
(0153086)
andre_montenegro   
2023-08-02 09:02   
(edited on: 2023-08-02 09:08)
Updated error behavior: added screenshot and added a custom Cypress spec file.

Also, now preconditions has changed as Cypress version has been updated ,like the POS version. Now instead a full screen unhandled error, the following message is displayed in the console:

 Error: ConfigurationSet initialization fail with error: TypeError: Cannot destructure property 'organization' of 'n.Z.App.TerminalProperty.get(...)' as it is null.

(0153162)
hgbot   
2023-08-03 14:10   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1996 [^]