Bug 672681

Summary: adding user to new role erases users old roles
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: Core UIAssignee: Ian Springer <ian.springer>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0.0.B02CC: ccrouch, sdharane
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description John Mazzitelli 2011-01-25 20:07:47 UTC
I just created a new user, assigned it to the All Resources role. Saved.

I then went over to the role UI and created a role called "Provisioning" and just enabled the global "bundle" permission to it.

As part of me creating that role (I didn't save it yet), I assigned the new role to my user I created earlier. I then hit save to save the role.

I then went back to look at the user, and the "All resources" role was missing, all he had was the new Provisioning role.

Comment 1 Ian Springer 2011-01-25 22:45:44 UTC
Fixed in master (commit 6cd53e7).

Comment 2 Sudhir D 2011-02-22 10:35:14 UTC
Verified against RHQ 4.0.0-SNAPSHOT build# f896da0. 

1. Created new user and assigned All Resource Role.
2. Went over to Role UI and created new role called Provisioning (did not hit save yet), assigned this new role to the newly created user in 1 and then hit the save button.
3. Went back to User UI and then looked at the newly created user's role. 

I could see both the roles assigned to the user. 

Marking this bug as verified.

Comment 3 Corey Welton 2011-05-24 01:16:27 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 4 Corey Welton 2011-05-24 01:16:37 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 5 Corey Welton 2011-05-24 01:16:37 UTC
Bookkeeping - closing bug - fixed in recent release.

Comment 6 Corey Welton 2011-05-24 01:16:42 UTC
Bookkeeping - closing bug - fixed in recent release.