Openbravo Issue Tracking System - POS2
View Issue Details
0048167POS2Corepublic2021-11-26 12:202022-01-03 18:14
javierRodriguez 
elara 
normalmajoralways
closedfixed 
5
 
 
No
0048167: The application does not show a properly message when there is and error during the initialization
If there is an error in any init process, like cashup, the application show a generic message which it does not indicate something useful.

For example, if the application receives an error response from cashup process due to a corrupted cashup, the application shows "The application could not be initialized. The server may not be available and the cache has not enough data. Check your server connection and try again."
- Include the patch attached
- Try to login
This standard message is shown due to the error type is not a initializationError. The error is thrown by posterminal initCashup file with ActionCanceled class and this kind of error is from core2.

check LoginProcess file in core2 module. handleInitializationError function
No tags attached.
diff posterminal.diff (812) 2021-11-26 12:20
https://issues.openbravo.com/file_download.php?file_id=16403&type=bug
Issue History
2021-11-26 12:20javierRodriguezNew Issue
2021-11-26 12:20javierRodriguezAssigned To => Retail
2021-11-26 12:20javierRodriguezFile Added: posterminal.diff
2021-11-26 12:20javierRodriguezTriggers an Emergency Pack => No
2021-11-26 12:23javierRodriguezCategoryPOS => Core
2021-11-26 12:23javierRodriguezProposed Solution updated
2021-12-02 18:47elaraAssigned ToRetail => elara
2021-12-02 19:19elaraStatusnew => acknowledged
2021-12-03 13:22elaraStatusacknowledged => scheduled
2021-12-06 13:21elaraStatusscheduled => acknowledged
2021-12-07 15:47elaraStatusacknowledged => scheduled
2021-12-07 19:14hgbotNote Added: 0133518
2022-01-03 18:14hgbotResolutionopen => fixed
2022-01-03 18:14hgbotStatusscheduled => closed
2022-01-03 18:14hgbotNote Added: 0134105
2022-01-03 18:14hgbotNote Added: 0134106

Notes
(0133518)
hgbot   
2021-12-07 19:14   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/676 [^]
(0134105)
hgbot   
2022-01-03 18:14   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 7b47f3dd6c119b1d6496842e6e0edca590084f17
Author: Eduardo Lara <eduardo.lara@smfconsulting.es>
Date: 03-01-2022 18:13:15
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/7b47f3dd6c119b1d6496842e6e0edca590084f17 [^]

Fixes ISSUE-48167: Show specific error instead of generic one at Initialization Error

---
M web-jspack/org.openbravo.core2/src/core/authentication/LoginProcess.js
M web-jspack/org.openbravo.core2/src/core/authentication/__test__/LoginProcess.test.js
---
(0134106)
hgbot   
2022-01-03 18:14   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/676 [^]