Bug 1020195

Summary: RBAC: Changing scope type of the role leads to "Failed to save" error
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Jakub Cechacek <jcechace>
Component: Web ConsoleAssignee: Heiko Braun <hbraun>
Status: CLOSED DUPLICATE QA Contact: Jakub Cechacek <jcechace>
Severity: urgent Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: brian.stansberry, hpehl, jkudrnac
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-21 09:23:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jakub Cechacek 2013-10-17 09:10:46 UTC
Attempting to change scope type of existing scoped role leads to error on save. 

Steps to Reproduce:
1. navigate to Administration - Role Assignment - Roles - Scoped Roles
2. create role of group scoped role restricted to main-server-group
3. select the role created in previous step in the list and click "edit" button
4. change type to "Host" and select the scope (e.g. master host)
5. save 

Actual results:
"Failed to save error message"

Expected results:
As both "Host" and "Server group" scoped roles are a different type of resource, it should not be possible to modify the scope type of existing roles.

Proposed fix:
Remove the option to change scope type

Comment 1 Harald Pehl 2013-10-21 09:23:58 UTC

*** This bug has been marked as a duplicate of bug 1020196 ***