Bug 1327466 - Cannot delete user role once it was associated with a user group
Summary: Cannot delete user role once it was associated with a user group
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: cfme-future
Assignee: Gregg Tanzillo
QA Contact: Ramesh A
URL:
Whiteboard: configuration:tenant
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-15 08:01 UTC by Ramesh A
Modified: 2017-08-21 13:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-21 13:07:12 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
rananda: automate_bug+


Attachments (Terms of Use)
Unable to delete the role (109.54 KB, image/png)
2016-04-15 08:01 UTC, Ramesh A
no flags Details

Description Ramesh A 2016-04-15 08:01:59 UTC
Created attachment 1147491 [details]
Unable to delete the role

Description of problem:
Cannot delete user role once it was associated with a user group

Version-Release number of selected component (if applicable):
5.6.0.1-beta2.20160413141124_e25ac0e

How reproducible:
100%

Steps to Reproduce:
1. Create a new user role
2. Create new user group and have it use the above created role
3. Try to delete the above created user role. This will correctly throw an error, because the role is linked to the above created group via entitlements table.
3. Delete the above created group
4. Now, try to delete the above user role. 

Actual results:
Throws error message stating "Role "<role-name>": Error during delete: Cannot delete record because of dependent entitlements".

Note:
After this, you can no longer delete the user role. (even if we logout and login again)

Expected results:
Should be able to delete the role

Additional info:
evm.log:
========
[----] E, [2016-04-15T03:42:38.782328 #3051:f6c5fc] ERROR -- : MIQ(ops_controller-x_button): Role "ramesh-role": Error during delete: Cannot delete record because of dependent entitlements

Comment 2 Ramesh A 2016-04-15 08:03:00 UTC
Github link - https://github.com/ManageIQ/manageiq/issues/7896

Comment 3 Chris Pelland 2017-08-21 13:07:12 UTC
This bug has been open for more than a year and is assigned to an older release of CloudForms. 

If you would like to keep this Bugzilla open and if the issue is still present in the latest version of the product, please file a new Bugzilla which will be added and assigned to the latest release of CloudForms.

Comment 4 Chris Pelland 2017-08-21 13:09:32 UTC
This bug has been open for more than a year and is assigned to an older release of CloudForms. 

If you would like to keep this Bugzilla open and if the issue is still present in the latest version of the product, please file a new Bugzilla which will be added and assigned to the latest release of CloudForms.


Note You need to log in before you can comment on or make changes to this bug.