Bug 1552873

Summary: RBAC Users can be removed from all associated groups after the webui shows the error "A User must be assigned to a Group"
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: UI - OPSAssignee: lgalis
Status: CLOSED ERRATA QA Contact: Landon LaSmith <llasmith>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: cpelland, hkataria, lavenel, llasmith, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.2   
Hardware: All   
OS: All   
Whiteboard: webui:rbac
Fixed In Version: 5.9.2.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1537601 Environment:
Last Closed: 2018-05-07 20:44:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1537601    
Bug Blocks:    

Comment 2 CFME Bot 2018-03-07 21:52:18 UTC
New commit detected on ManageIQ/manageiq-ui-classic/gaprindashvili:

https://github.com/ManageIQ/manageiq-ui-classic/commit/7b10336b56f23335e55dc7cd55329ade756dc412
commit 7b10336b56f23335e55dc7cd55329ade756dc412
Author:     Harpreet Kataria <hkataria>
AuthorDate: Thu Feb  1 10:28:09 2018 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Thu Feb  1 10:28:09 2018 -0500

    Merge pull request #3345 from lgalis/user_no_group_validation_fix

    Update the User data only if the validation passes
    (cherry picked from commit fbcf7664ddb6d978d45473ba721c9e6f8be9c82d)

    https://bugzilla.redhat.com/show_bug.cgi?id=1552873

 app/controllers/ops_controller/ops_rbac.rb | 2 +-
 spec/controllers/ops_controller_spec.rb | 19 +
 2 files changed, 20 insertions(+), 1 deletion(-)

Comment 3 Landon LaSmith 2018-04-02 15:00:26 UTC
VERIFIED in 5.9.2. I was able to create a user that was assigned to multiple groups. After attempting to remove the user from all associated groups, the webui reported the error and changes were not saved

Comment 6 errata-xmlrpc 2018-05-07 20:44:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:1328