Bug 1353788

Summary: After cloning of roles you cant select the role nor can you delete them.
Product: Red Hat Satellite Reporter: Kim Borup <kborup>
Component: Users & RolesAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Stanislav Tkachenko <stkachen>
Severity: medium Docs Contact:
Priority: high    
Version: 6.2.0CC: amasolov, bbuckingham, bkearney, brcoca, cwelton, dcaplan, dhawke, egolov, ehelms, hprakash, jcallaha, kelly.brown1, lzap, mhulan, ohadlevy, rplevka, sauchter, sshtein, stkachen, vgunasek, zhunting
Target Milestone: UnspecifiedKeywords: PrioBumpPM, Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: foreman-1.11.0.75-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1416568 1426383 (view as bug list) Environment:
Last Closed: 2017-05-01 13:52:53 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: 1416568, 1426383    
Attachments:
Description Flags
Screen of acctual problem. none

Description Kim Borup 2016-07-08 02:16:41 UTC
Created attachment 1177510 [details]
Screen of acctual problem.

Description of problem:
When you in satellite 6.2 clone a role, in this case a very restrictive role for a group of users, clone of that role becomes greyes out like the Anonymous or Default user role, you can add a filter to it, but you can not delete it nor can you assign it to a user. 

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

How reproducible:

All the time

Steps to Reproduce:
1. Select Administer -> roles
2. Clone any role build in or manualy created.
3. 

Actual results:
greyed out role you cant delete, nor assign to a user. 

Expected results:

A clone of a role that you can select and attach to a user. 

Additional info:

This is a work in progress at a customer site for a poc before the final 6.2 release.

Comment 2 Brad Buckingham 2016-07-08 19:35:28 UTC
Ohad, is this the expected behavior when cloning Roles?

Comment 3 Marek Hulan 2016-08-04 14:10:11 UTC
It's not expected behavior.

Comment 4 Bryan Kearney 2016-08-04 16:16:17 UTC
Upstream bug assigned to mhulan

Comment 5 Bryan Kearney 2016-08-04 16:16:22 UTC
Upstream bug assigned to mhulan

Comment 6 Marek Hulan 2016-08-11 08:31:22 UTC
*** Bug 1350354 has been marked as a duplicate of this bug. ***

Comment 7 Bryan Kearney 2016-08-11 12:16:52 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/15108 has been closed

Comment 9 Roman Plevka 2016-10-20 10:37:54 UTC
VERIFIED
on sat6.3 snap#5

cloned built-in roles are now able to be deleted.

Comment 10 Marek Hulan 2016-10-26 07:32:51 UTC
*** Bug 1388718 has been marked as a duplicate of this bug. ***

Comment 12 Satellite Program 2017-02-23 21:08:39 UTC
Please add verifications steps for this bug to help QE verify

Comment 16 Lukas Zapletal 2017-02-24 15:26:58 UTC
REL ENG: TWO patches required, both small:

https://github.com/theforeman/foreman/pull/3925
https://github.com/theforeman/foreman/pull/4244

I already filed MR for the former one.

Comment 18 Lukas Zapletal 2017-03-21 13:44:08 UTC
Sure it's trivial whitespace.

Comment 20 Lukas Zapletal 2017-03-21 13:52:19 UTC
QA Steps to Reproduce:
1. Select Administer -> roles
2. Clone any role build in or manualy created.
3. Attempt to delete it, it should be possible

Comment 21 Stanislav Tkachenko 2017-03-30 08:41:17 UTC
Verified on Sat 6.2.9-1, both built-in (Default User) and manually created roles can be cloned, cloned roles can be edited and deleted.

Comment 23 errata-xmlrpc 2017-05-01 13:52:53 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-2017:1191

Comment 24 Marek Hulan 2017-06-12 13:46:01 UTC
*** Bug 1457658 has been marked as a duplicate of this bug. ***