Bug 1020196

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 CURRENTRELEASE QA Contact: Jakub Cechacek <jcechace>
Severity: urgent Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: brian.stansberry, hpehl, jkudrnac, myarboro
Target Milestone: ER7   
Target Release: EAP 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-15 16:14:36 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:
Bug Depends On:    
Bug Blocks: 1021418    

Description Jakub Cechacek 2013-10-17 09:10:56 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 JBoss JIRA Server 2013-10-18 12:56:54 UTC
Harald Pehl <hpehl> updated the status of jira HAL-284 to Coding In Progress

Comment 2 JBoss JIRA Server 2013-10-18 13:00:00 UTC
Harald Pehl <hpehl> updated the status of jira HAL-284 to Resolved

Comment 3 JBoss JIRA Server 2013-10-18 13:00:00 UTC
Harald Pehl <hpehl> made a comment on jira HAL-284

Type is read-only in edit mode

Comment 4 Harald Pehl 2013-10-21 09:23:58 UTC
*** Bug 1020195 has been marked as a duplicate of this bug. ***

Comment 5 Jakub Cechacek 2013-10-31 10:28:23 UTC
Verified 6.2.0.,ER7