Bug 1346296

Summary: 03-roles.rb seeds katello view_* filters for Viewer role multiple times
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: Users & RolesAssignee: David Davis <daviddavis>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: andrew.schofield, bbuckingham, daviddavis, mmccune, zhunting
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-katello-3.0.0.57-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:05:20 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 Lukas Pramuk 2016-06-14 13:26:28 UTC
Description of problem:
03-roles.rb seeds katello view_* filters for Viewer role multiple times
On a fresh/upgraded Satellite Viewer role has following filters listed 5 times:
- view_activation_keys
- view_content_hosts
- view_content_views
- view_gpg_keys
- view_host_collections
- view_lifecycle_environments
- view_products
- view_subscriptions
- view_sync_plans

It seems that it was introduced by fix of BZ 1341656

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


How reproducible:
always

Steps to Reproduce:
1. Navigate to Administer -> Roles -> Viewer -> tab Filters
Activation Keys 	view_activation_keys 		none 	
Activation Keys 	view_activation_keys 		none 	
Activation Keys 	view_activation_keys 		none 	
Activation Keys 	view_activation_keys 		none 	
Activation Keys 	view_activation_keys 		none
>>> some filters listed 5 times

2. # foreman-rake db:seed
...
Seeding /usr/share/foreman/db/seeds.d/03-roles.rb
...
All seed files executed

3.Navigate to Administer -> Roles -> Viewer -> tab Filters
Activation Keys 	view_activation_keys 		none 	
Activation Keys 	view_activation_keys 		none 	
Activation Keys 	view_activation_keys 		none 	
Activation Keys 	view_activation_keys 		none 	
Activation Keys 	view_activation_keys 		none 	
Activation Keys 	view_activation_keys 		none
>>> some filters listed 6 times

Actual results:
multliplicity of filters

Expected results:
no duplicity

Comment 3 Partha Aji 2016-06-15 17:38:37 UTC
Created redmine issue http://projects.theforeman.org/issues/15427 from this bug

Comment 4 Bryan Kearney 2016-06-15 18:16:35 UTC
Upstream bug component is Content Management

Comment 5 Bryan Kearney 2016-06-16 14:16:21 UTC
Upstream bug component is Provisioning

Comment 6 Bryan Kearney 2016-06-16 22:16:06 UTC
Upstream bug component is Content Management

Comment 7 Bryan Kearney 2016-06-22 18:17:41 UTC
Upstream bug component is Users & Roles

Comment 8 Bryan Kearney 2016-06-29 14:17:40 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/15427 has been closed

Comment 9 Lukas Pramuk 2016-07-07 11:40:15 UTC
VERIFIED.

@satellite-6.2.0-19.0.el7sat.noarch
tfm-rubygem-katello-3.0.0.57-1.el7sat.noarch
foreman-1.11.0.43-1.el7sat.noarch

used manual reproducer in comment #0:

1. Navigate to Administer -> Roles -> Viewer -> tab Filters
>>> each filter is listed only once 

2. # foreman-rake db:seed
...
Seeding /usr/share/foreman/db/seeds.d/03-roles.rb
...
All seed files executed

3.Navigate to Administer -> Roles -> Viewer -> tab Filters
>>> each filter is still listed only once

Comment 10 Bryan Kearney 2016-07-27 11:05:20 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:1501

Comment 11 Marek Hulan 2016-09-05 13:55:26 UTC
*** Bug 1293456 has been marked as a duplicate of this bug. ***