Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0050358 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
defect | [POS2] Core | major | have not tried | 2022-09-27 18:20 | 2022-09-28 16:13 | |||||||
Reporter | adrianromero | View Status | public | |||||||||
Assigned To | Triage Platform Base | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Any | Database | Any | Java version | ||||||||
OS Version | Database version | Ant version | ||||||||||
Product Version | SCM revision | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | No | |||||||||||
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. | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ![]() | |||||||||||
![]() |
|
![]() |
|
(0141449) adrianromero (viewer) 2022-09-28 16:13 |
Linked Jira ticket: https://openbravo.atlassian.net/browse/RM-3116 [^] |
![]() |
|||
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 | OBNetwork customer | => No |
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 | View Revisions |
2022-09-28 16:13 | adrianromero | Note Added: 0141449 |
Copyright © 2000 - 2009 MantisBT Group |