Openbravo Issue Tracking System - POS2
View Issue Details
0049112POS2Corepublic2022-04-23 21:262022-05-17 17:58
guilleaer 
meriem_azaf 
normalmajorhave not tried
closedfixed 
5
 
 
No
0049112: Error shown when doing login offline
Error shown when doing login offline in POS2 (see gif attached)
In live builds
https://livebuilds.openbravo.com/retail_pos2_modules_pgsql/web/pos/?terminal=VBS-2 [^]
login using vallabanca/openbravo
using dev tools simulate offline
Go to orders window to make POS realize about offline
Now Terminal icon is red
Logout
Login again using vallblanca/openbravo
An error is shown in the screen
After press OK login offline is done and works fine
No tags attached.
related to defect 0049102 closed cberner Jira 2909 : Changing user with empty cache is not working fine. Terminal information is not retrieved for new user 
gif Peek 2022-04-23 21-24.gif (965,069) 2022-04-23 21:26
https://issues.openbravo.com/file_download.php?file_id=16927&type=bug
Issue History
2022-04-23 21:26guilleaerNew Issue
2022-04-23 21:26guilleaerAssigned To => cberner
2022-04-23 21:26guilleaerFile Added: Peek 2022-04-23 21-24.gif
2022-04-23 21:26guilleaerTriggers an Emergency Pack => No
2022-04-27 16:14AugustoMauchAssigned Tocberner => meriem_azaf
2022-04-27 16:14AugustoMauchStatusnew => scheduled
2022-05-06 09:37cbernerRelationship addedrelated to 0049102
2022-05-06 15:28hgbotNote Added: 0137047
2022-05-17 17:58hgbotResolutionopen => fixed
2022-05-17 17:58hgbotStatusscheduled => closed
2022-05-17 17:58hgbotNote Added: 0137397
2022-05-17 17:58hgbotNote Added: 0137398

Notes
(0137047)
hgbot   
2022-05-06 15:28   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/745 [^]
(0137397)
hgbot   
2022-05-17 17:58   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 7277252b98ca8cd4625aba733d35fd23fa9b9aab
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 17-05-2022 17:46:32
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/7277252b98ca8cd4625aba733d35fd23fa9b9aab [^]

Fixes ISSUE-49112: Error shown when doing login offline.

When doing login offline a pop up shown with an error related to the initializeApplication.

To fix this some changes have been done in the LoginProcess
initialization, to allow this flow fixed in issue 49102:
- Login Online(User hasn't previously logged in) -> No masterdata
refresh is required -> Terminal Data is tried to be loaded from
IndexedDB, but there is none, as the user hasn't logged previously.

This is fixed by loading terminal data when the user logs in online mode with a user
that has no terminal data in indexeddb and a masterdata refresh is not
to be performed. By default a masterdata refresh will also upload
terminal data, so that's why it is not required in that case.

The error of this issue was related to that change, due that in offline
mode we can't perform calls to backoffice and should not do that, it is
fixed by only doing this checks when doing an online login, which is the
correct way of handling this part, as offline login with a user that
never logged in is already unsupported.

---
M web-jspack/org.openbravo.core2/src/core/authentication/LoginProcess.js
M web-jspack/org.openbravo.core2/src/core/terminal/Terminal.js
---
(0137398)
hgbot   
2022-05-17 17:58   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/745 [^]