Bug 1306638 - Product Features for Role can be cleared
Summary: Product Features for Role can be cleared
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.5.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: GA
: 5.6.0
Assignee: Dávid Halász
QA Contact: Ramesh A
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-11 14:00 UTC by Krain Arnold
Modified: 2016-07-13 09:12 UTC (History)
5 users (show)

Fixed In Version: 5.6.0.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 15:37:46 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Krain Arnold 2016-02-11 14:00:59 UTC
Description of problem:
If you clear all of the product features from a role, you recieve and error saying that "At least one Product Feature must be selected". If you cancel out after that, the role is saved with all the product features removed, and users with that role will not be able to log into the appliance.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Edit a role of your choice.
2. Unselect the top box "Everything"
3. Attempt to save
4. After reading the error message, cancel out of the editing process

Actual results:
The Product features list is completely cleared.

Expected results:
The cancel process would leave the role in the state it was before editing.

Additional info:

Comment 3 CFME Bot 2016-02-26 17:10:37 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/1e60f11176956f62cee927136de19f27af8e32d6

commit 1e60f11176956f62cee927136de19f27af8e32d6
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Feb 15 12:14:54 2016 +0100
Commit:     Dávid Halász <dhalasz>
CommitDate: Fri Feb 26 16:54:36 2016 +0100

    Do not save rbac features before validating them
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1306638

 app/controllers/ops_controller/ops_rbac.rb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Comment 5 CFME Bot 2016-02-29 14:46:23 UTC
Detected commit referencing this ticket while ticket status is MODIFIED.

Comment 6 Ramesh A 2016-04-22 13:32:48 UTC
Good to go.  Verified and working fine in 5.6.0.4-beta2.3.20160421172650_719e256

Comment 8 errata-xmlrpc 2016-06-29 15:37:46 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/RHBA-2016:1348


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