Bug 155296 - Editing user in your account strips roles
Editing user in your account strips roles
Product: Red Hat Network
Classification: Red Hat
Component: RHN/R&D (Show other bugs)
RHN Devel
All Linux
medium Severity medium
: ---
: ---
Assigned To: Michael Bowman
Red Hat Satellite QA List
Depends On:
Blocks: rhnMilestone1
  Show dependency treegraph
Reported: 2005-04-18 16:18 EDT by Ken Ganong
Modified: 2007-04-18 13:23 EDT (History)
1 user (show)

See Also:
Fixed In Version: rhn400
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-09-28 16:55:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ken Ganong 2005-04-18 16:18:03 EDT
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 14:35:03 EDT
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 16:55:16 EDT
Verified, closing.

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