Openbravo Issue Tracking System - POS2
View Issue Details
0055141POS2Corepublic2024-04-09 13:262024-05-07 14:19
jarmendariz 
Triage Platform Base 
urgentmajorhave not tried
closedfixed 
5
 
24Q3 
No
0055141: Login offline fails when loggin in with an Automatic Role
With 0054917 we implemented a check to ensure that user Role can log in in a specified application mode in offline login, but it does not take into account that automatic Roles does not specify which application modes it has access to, so offline login fails on those cases.
- Log in in POS2 with vallblanca user
 - Will log in with the Automatic role
- Log out
- In Chrome developer tools, simulate an offline terminal goint to the Network tab, and in the throttling section, select the option "Offline"
- Log in with vallblanca user

Log in will fail with a message saying that vallblanca user has no access to POS application mode.
No tags attached.
related to feature request 0054917 closed meriem_azaf Application Mode - Login offline 
Issue History
2024-04-09 13:26jarmendarizNew Issue
2024-04-09 13:26jarmendarizAssigned To => Triage Platform Base
2024-04-09 13:26jarmendarizTriggers an Emergency Pack => No
2024-04-09 13:28jarmendarizRelationship addedrelated to 0054917
2024-04-09 13:36hgbotNote Added: 0162990
2024-05-07 14:19hgbotResolutionopen => fixed
2024-05-07 14:19hgbotStatusnew => closed
2024-05-07 14:19hgbotFixed in Version => 24Q3
2024-05-07 14:19hgbotNote Added: 0164149
2024-05-07 14:19hgbotNote Added: 0164150

Notes
(0162990)
hgbot   
2024-04-09 13:36   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1445 [^]
(0164149)
hgbot   
2024-05-07 14:19   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 320205a3dbf24004d766feed1ae4e1966f7842ec
Author: Javier Armendáriz <j.armendariz@orisha.com>
Date: 07-05-2024 12:18:41
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/320205a3dbf24004d766feed1ae4e1966f7842ec [^]

Fixed ISSUE-55141: Automatic Roles can access any application mode in offline mode

---
M web-jspack/org.openbravo.core2/src/core/authentication/LoginProcess.js
---
(0164150)
hgbot   
2024-05-07 14:19   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1445 [^]