Bug 155296

Summary: Editing user in your account strips roles
Product: [Retired] Red Hat Network Reporter: Ken Ganong <kganong>
Component: RHN/R&DAssignee: Michael Bowman <mbowman>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: RHN DevelCC: rhn-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rhn400 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-28 20:55:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 125080    

Description Ken Ganong 2005-04-18 20:18:03 UTC
Description of problem:
Editing user in your account strips roles

Steps to Reproduce:
1. Log-in
2. Click my account and change a single field.
3. Click the submit button
  
Actual results: (normal user)  !!

Expected results: the roles of the past

Comment 1 Michael Bowman 2005-04-20 18:35:03 UTC
Refactored our Actions for this. Basically, the problem was that we were calling
the same action for both self editing and when an admin edits an account. For
the self editing we don't edit roles, therefore our action gets null for the new
role set. For the admin editing action, we weren't ever removing roles from a
user. When I fixed this, the self edit broke because the action didn't know if
it got null because the user wasn't allowed to select any roles, or because all
roles had been removed.

We now have two actions with the commonality factored out into a helper class.

Comment 2 Jesus M. Rodriguez 2005-09-28 20:55:16 UTC
Verified, closing.