Openbravo Issue Tracking System - POS2 | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0050358 | POS2 | Core | public | 2022-09-27 18:20 | 2022-09-28 16:13 |
Reporter | adrianromero | ||||
Assigned To | Triage Platform Base | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0050358: OnLoginActions do not manage properly errors | ||||
Description | If an exception is raised during a OnLoginAction a message showing the error is displayed but after the cashier taps on OK the application enters in an infinite loop where the error is diplayed. For example the Fiscalization API should prevent to login into the application if there is the event fired during the inicialiation fails. See attached image. | ||||
Steps To Reproduce | Register a OnLoginAction like this and login into the application. import OB from 'org.openbravo.core2/src/core/OB'; import OnLoginActions from 'org.openbravo.core2/src/core/authentication/OnLoginActions'; import './assets/style/main.scss'; export async function register() { OnLoginActions.registerAction(OB.EVTFIS.fiscalizationLogin); OnLoginActions.registerAction(async () => { throw new Error('Error Message'); }); } export async function init() { // Nothing } | ||||
Proposed Solution | Logout the POS and go to the login window if an exception is raised during OnLoginActions. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | Screenshot from 2022-09-27 18-16-03.png (192,248) 2022-09-27 18:21 https://issues.openbravo.com/file_download.php?file_id=17565&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2022-09-27 18:20 | adrianromero | New Issue | |||
2022-09-27 18:20 | adrianromero | Assigned To | => Retail | ||
2022-09-27 18:20 | adrianromero | Triggers an Emergency Pack | => No | ||
2022-09-27 18:21 | adrianromero | File Added: Screenshot from 2022-09-27 18-16-03.png | |||
2022-09-27 18:22 | adrianromero | Assigned To | Retail => Triage Platform Base | ||
2022-09-27 18:22 | adrianromero | Category | POS => Core | ||
2022-09-28 16:12 | adrianromero | Description Updated | bug_revision_view_page.php?rev_id=24790#r24790 | ||
2022-09-28 16:13 | adrianromero | Note Added: 0141449 |
Notes | |||||
|
|||||
|
|