Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0048757 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2022-03-10 09:07 | 2022-03-15 14:09 | |||
Reporter | kousalya_r | View Status | public | |||||
Assigned To | jarmendariz | |||||||
Priority | high | Resolution | fixed | Fixed in Version | PR22Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | Gold | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 38991 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0048757: Not able to login when default user role deactivation | |||||||
Description | Not 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 Reproduce | Create 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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
|
![]() |
|
(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 [^] |
![]() |
|||
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 | OBNetwork customer | => Gold |
2022-03-10 09:07 | kousalya_r | Modules | => Core |
2022-03-10 09:07 | kousalya_r | Support ticket | => 38991 |
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 | Merge Request Status | => open |
2022-03-15 14:08 | hgbot | Note Added: 0135731 | |
2022-03-15 14:08 | hgbot | Merge Request Status | open => approved |
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 |