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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049112
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] Coremajorhave not tried2022-04-23 21:262022-05-17 17:58
ReporterguilleaerView Statuspublic 
Assigned Tomeriem_azaf 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix 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

0049112: Error shown when doing login offline

DescriptionError shown when doing login offline in POS2 (see gif attached)
Steps To ReproduceIn 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
TagsNo tags attached.
Attached Filesgif file icon Peek 2022-04-23 21-24.gif [^] (965,069 bytes) 2022-04-23 21:26

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0049102 closedcberner Jira 2909 : Changing user with empty cache is not working fine. Terminal information is not retrieved for new user 

-  Notes
(0137047)
hgbot (developer)
2022-05-06 15:28

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/745 [^]
(0137397)
hgbot (developer)
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 (developer)
2022-05-17 17:58

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/745 [^]

- Issue History
Date Modified Username Field Change
2022-04-23 21:26 guilleaer New Issue
2022-04-23 21:26 guilleaer Assigned To => cberner
2022-04-23 21:26 guilleaer File Added: Peek 2022-04-23 21-24.gif
2022-04-23 21:26 guilleaer Triggers an Emergency Pack => No
2022-04-27 16:14 AugustoMauch Assigned To cberner => meriem_azaf
2022-04-27 16:14 AugustoMauch Status new => scheduled
2022-05-06 09:37 cberner Relationship added related to 0049102
2022-05-06 15:28 hgbot Note Added: 0137047
2022-05-17 17:58 hgbot Resolution open => fixed
2022-05-17 17:58 hgbot Status scheduled => closed
2022-05-17 17:58 hgbot Note Added: 0137397
2022-05-17 17:58 hgbot Note Added: 0137398


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker