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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0048757
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2022-03-10 09:072022-03-15 14:09
Reporterkousalya_rView Statuspublic 
Assigned Tojarmendariz 
PriorityhighResolutionfixedFixed in VersionPR22Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0048757: Not able to login when default user role deactivation

DescriptionNot able to login when default role is deactivate in user roles tab of User Window.

This problem occurs because the DefaultOptionsData.getDefaultRole method does not take into account the activated check of this tab, here is the select:
The following condition should be added in the select statement 'and userRoles.isactive='Y''.

The issue has been fixed and patch is attached below.
Steps To ReproduceCreate a user with three roles, we will call them Role1, Role2 and Role3. Set Role1 by default to the user.
In the user roles tab (it is important that it is the tab, not the roles window) deactivate Role1 and Role2.
Try to log in, if you log in, deactivate Role 3 and activate Role 2, when trying to log in you will not be able to.

TagsNo tags attached.
Attached Files? file icon 38991_UserRole [^] (686 bytes) 2022-03-10 09:07 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0135731)
hgbot (developer)
2022-03-15 14:08

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/539 [^]
(0135732)
hgbot (developer)
2022-03-15 14:09

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 71345332bad649532d0adfb7c52bc177497c1747
Author: Javier Armendáriz <javier.armendariz@openbravo.com>
Date: 15-03-2022 14:03:31
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/71345332bad649532d0adfb7c52bc177497c1747 [^]

Fixed ISSUE-48757: Adding user role active check on getDefaultRole function

This function is used to pick an active user role when the default user role
is not active, and without this check you can retrieve a role that is not
enabled in the user roles tab, causing the login process to fail.

---
M src/org/openbravo/base/secureApp/DefaultOptions_data.xsql
---
(0135733)
hgbot (developer)
2022-03-15 14:09

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/539 [^]

- Issue History
Date Modified Username Field Change
2022-03-10 09:07 kousalya_r New Issue
2022-03-10 09:07 kousalya_r Assigned To => Triage Platform Base
2022-03-10 09:07 kousalya_r File Added: 38991_UserRole
2022-03-10 09:07 kousalya_r Modules => Core
2022-03-10 09:07 kousalya_r Triggers an Emergency Pack => No
2022-03-11 12:24 AugustoMauch Assigned To Triage Platform Base => jarmendariz
2022-03-11 12:25 AugustoMauch Status new => scheduled
2022-03-15 14:08 hgbot Note Added: 0135731
2022-03-15 14:09 hgbot Resolution open => fixed
2022-03-15 14:09 hgbot Status scheduled => closed
2022-03-15 14:09 hgbot Fixed in Version => PR22Q2
2022-03-15 14:09 hgbot Note Added: 0135732
2022-03-15 14:09 hgbot Note Added: 0135733


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker