Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040787Retail ModulesWeb POSpublic2019-05-06 11:152019-05-21 15:17
javietxe 
alostale 
immediatemajoralways
closedfixed 
5
 
RR19Q3 
jorge-garcia
Production - QA Approved
2018-12-14
RR19Q1
https://code.openbravo.com/erp/devel/pi/rev/925d93d4e8971f34caf04cd2cad44223fa74bf3c [^]
No
0040787: User roles requires backend access to login in WebPOS
If the Role is marked with the configuration "Restrict backend access", when trying to login to the POS, the login is refused.

The error shown is:

Access Restricted This user doesn't have access to the backend. To be able to access Openbravo, a user needs a role with access to the backend.

See attached picture.
- Configure the user role to do login as "Restrict backend access"
- Try to login in the POS with a user of the previously configured role.
No tags attached.
depends on backport 0040790RR19Q2 closed jorge-garcia Retail Modules User roles requires backend access to login in WebPOS 
depends on backport 0040791RR19Q1.1 closed jorge-garcia Retail Modules User roles requires backend access to login in WebPOS 
caused by defect 0039776 closed jarmendariz Openbravo ERP OBSecurityException appears after login with user with no roles 
png Screenshot from 2019-05-06 11-12-54.png (151,289) 2019-05-06 11:15
https://issues.openbravo.com/file_download.php?file_id=12917&type=bug
png
Issue History
2019-05-06 11:15javietxeNew Issue
2019-05-06 11:15javietxeAssigned To => Retail
2019-05-06 11:15javietxeFile Added: Screenshot from 2019-05-06 11-12-54.png
2019-05-06 11:15javietxeRegression introduced in release => RR19Q1
2019-05-06 11:15javietxeTriggers an Emergency Pack => No
2019-05-06 15:40alostaleRelationship addedcaused by 0039776
2019-05-06 15:43alostaleRegression level => Production - QA Approved
2019-05-06 15:43alostaleRegression date => 2018-12-14
2019-05-06 15:43alostaleRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/925d93d4e8971f34caf04cd2cad44223fa74bf3c [^]
2019-05-06 15:43alostaleAssigned ToRetail => alostale
2019-05-06 15:43alostalePriorityurgent => immediate
2019-05-06 15:44alostaleStatusnew => scheduled
2019-05-06 15:51hgbotCheckin
2019-05-06 15:51hgbotNote Added: 0111504
2019-05-06 15:51hgbotStatusscheduled => resolved
2019-05-06 15:51hgbotResolutionopen => fixed
2019-05-06 15:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b638e581f3c387f2faca0bcf025579d960cdcebd [^]
2019-05-06 15:51hgbotCheckin
2019-05-06 15:51hgbotNote Added: 0111505
2019-05-06 15:52alostaleReview Assigned To => jorge-garcia
2019-05-06 16:40jorge-garciaNote Added: 0111508
2019-05-06 16:40jorge-garciaStatusresolved => closed
2019-05-06 16:40jorge-garciaFixed in Version => RR19Q3
2019-05-21 15:17hudsonbotCheckin
2019-05-21 15:17hudsonbotNote Added: 0112010

Notes
(0111504)
hgbot   
2019-05-06 15:51   
Repository: erp/devel/pi
Changeset: b638e581f3c387f2faca0bcf025579d960cdcebd
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon May 06 15:49:37 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b638e581f3c387f2faca0bcf025579d960cdcebd [^]

fixed issue 40787: roles require back-office access to log in to mobile apps

  MobileLoginHandler does a back-office login to later select mobile default role,
  it expects back-office to fail and keep session in case of restricted role login
  attempt.

  Back-office login handler was changed to fail and remove session in case there is
  no back-office role in current user's list. This made not possible to log in to
  mobile apps.

  Now if logging in to a mobile application session is kept after failure as it was
  before.

---
M src/org/openbravo/base/secureApp/LoginHandler.java
---
(0111505)
hgbot   
2019-05-06 15:51   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 5c9e2544976c7726e70f19eaef6c65bd49536ec2
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon May 06 15:50:19 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/5c9e2544976c7726e70f19eaef6c65bd49536ec2 [^]

related to issue 40787: define mobile applications in login handler

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
---
(0111508)
jorge-garcia   
2019-05-06 16:40   
Code reviewed and tested
(0112010)
hudsonbot   
2019-05-21 15:17   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9b8f37d9d85e [^]
Maturity status: Test