Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0050358
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] Coremajorhave not tried2022-09-27 18:202022-09-28 16:13
ReporteradrianromeroView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0050358: OnLoginActions do not manage properly errors

DescriptionIf 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 ReproduceRegister 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 SolutionLogout the POS and go to the login window if an exception is raised during OnLoginActions.

TagsNo tags attached.
Attached Filespng file icon Screenshot from 2022-09-27 18-16-03.png [^] (192,248 bytes) 2022-09-27 18:21

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0141449)
adrianromero (manager)
2022-09-28 16:13

Linked Jira ticket: https://openbravo.atlassian.net/browse/RM-3116 [^]

- 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 View Revisions
2022-09-28 16:13 adrianromero Note Added: 0141449


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker