Bug 1390969

Summary: Unable to add a new role
Product: Red Hat CloudForms Management Engine Reporter: Ramesh A <rananda>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED CURRENTRELEASE QA Contact: Niyaz Akhtar Ansari <nansari>
Severity: high Docs Contact:
Priority: high    
Version: 5.7.0CC: cpelland, hkataria, jhardy, lavenel, mpovolny, nansari, obarenbo, pakotvan, pmcgowan
Target Milestone: GAKeywords: TestOnly
Target Release: 5.8.0Flags: rananda: automate_bug-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:configuration:rbac:role
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1392971 (view as bug list) Environment:
Last Closed: 2017-06-12 17:22:11 UTC Type: Bug
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:    
Bug Blocks: 1392971    
Attachments:
Description Flags
error none

Description Ramesh A 2016-11-02 10:30:06 UTC
Created attachment 1216463 [details]
error

Description of problem:
Unable to add a new role 

Version-Release number of selected component (if applicable):
5.7.0.9-beta2.1.20161101182054_eb0afaa

How reproducible:
Very

Steps to Reproduce:
1. Try to create a new role from Settings ==> Configuration ==> Access Control ==> Roles ==> Configuration ==> Add a new Role


Actual results:
Throws unwanted error message "Password can't be blank" and "Userid can't be blank"

Expected results:
Should be able to add role successfully

Additional info:
evm.log:
========
[----] E, [2016-11-02T06:21:25.377593 #3100:15da524] ERROR -- : MIQ(ops_controller-rbac_role_edit): Password can't be blank
[----] E, [2016-11-02T06:21:25.377790 #3100:15da524] ERROR -- : MIQ(ops_controller-rbac_role_edit): Userid can't be blank

Comment 2 Dan Clarizio 2016-11-02 19:00:43 UTC
*** Bug 1391056 has been marked as a duplicate of this bug. ***

Comment 4 Harpreet Kataria 2016-11-02 21:55:15 UTC
*** Bug 1390115 has been marked as a duplicate of this bug. ***

Comment 5 Harpreet Kataria 2016-11-02 21:56:09 UTC
This issue has already been fixed in https://github.com/ManageIQ/manageiq/pull/11999.

Comment 6 Dan Clarizio 2016-11-04 22:40:15 UTC
*** Bug 1391699 has been marked as a duplicate of this bug. ***

Comment 7 CFME Bot 2016-11-07 23:16:16 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/02b4259290fc3b92799fbe611b0688c699eea583

commit 02b4259290fc3b92799fbe611b0688c699eea583
Author:     Martin Povolny <mpovolny>
AuthorDate: Tue Oct 18 09:57:16 2016 +0200
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Mon Nov 7 18:13:24 2016 -0500

    Merge pull request #11999 from h-kataria/user_role_add_fix
    
    Fixed class name and key name in add/edit of user role code
    (cherry picked from commit 17bc43fcb6893b14737a5a63f7fddbdf404ed295)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1390969

 app/controllers/ops_controller/ops_rbac.rb       |  2 +-
 spec/controllers/ops_controller/ops_rbac_spec.rb | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)

Comment 9 Niyaz Akhtar Ansari 2017-03-08 11:57:13 UTC
Verified in version 5.8.0.4