Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1145814 - unable to create a role filter
Summary: unable to create a role filter
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Users & Roles
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Marek Hulan
QA Contact: sthirugn@redhat.com
URL: http://projects.theforeman.org/issues...
Whiteboard:
: 1208604 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-23 20:17 UTC by Tom McKay
Modified: 2017-02-23 20:54 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 14:01:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 7615 0 None None None 2016-04-22 15:43:55 UTC
Red Hat Bugzilla 1208604 0 unspecified CLOSED Non-admin user unable to set email notifications 2021-02-22 00:41:40 UTC

Internal Links: 1208604

Description Tom McKay 2014-09-23 20:17:58 UTC
As admin, visit try creating a new role filter in the UI for resource type Role. After submit no error message is displayed but the create page remains (versus normal behavior of returning to full list of filters). Looking at log an error is present of "Failed to save: Organization ids You can't assign organizations to this resource".

Comment 1 Tom McKay 2014-09-23 20:17:59 UTC
Created from redmine issue http://projects.theforeman.org/issues/7615

Comment 3 Dominic Cleal 2014-09-24 08:01:39 UTC
No such code in this version to even produce this error.

Comment 4 sthirugn@redhat.com 2015-04-04 10:38:42 UTC
1. Create a filter
 - Resource Type - Organization
 - Permission - view_organizations
 - Uncheck Unlimited
 - Search = name = "Default Organization"
2. Click Submit

Noticed the following in the logs: 

[I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"uS23C6Kl4xympo5DfKgrgnHFcW+A079vHG8sNAb0XSc=", "filter"=>{"role_id"=>"16", "resource_type"=>"Organization", "permission_ids"=>["", "105"], "unlimited"=>"0", "search"=>"name =  \"Default Organization\"", "location_ids"=>[""], "organization_ids"=>["", "", ""]}, "role_id"=>"16", "commit"=>"Submit"}
2015-04-04 12:37:13 [I] Failed to save: Organization ids You can't assign organizations to this resource

Note: This works fine for Resource Type = Activation keys.

Because of this bug, I cannot create roles specific to organizations.  I think this is a high severity bug which needs to be fixed by 6.1

Comment 7 sthirugn@redhat.com 2015-04-04 13:28:22 UTC
This works fine in cli though:

UI makes the following api call:
Parameters: {"utf8"=>"✓", "authenticity_token"=>"uS23C6Kl4xympo5DfKgrgnHFcW+A079vHG8sNAb0XSc=", "filter"=>{"role_id"=>"16", "resource_type"=>"Organization", "permission_ids"=>["", "109", "185", "106", "188", "108", "107", "187", "186", "105", "184"], "unlimited"=>"0", "search"=>"name = sthirugn-enablemanifest", "location_ids"=>[""], "organization_ids"=>["", "", ""]}, "role_id"=>"16", "commit"=>"Submit"}

CLI makes the following api call:
Processing by Api::V2::FiltersController#create as JSON
2015-04-04 14:35:51 [I]   Parameters: {"filter"=>{"role_id"=>"1", "permission_ids"=>["105", "106", "107", "108", "109", "184", "185", "186", "187", "188"], "search"=>"name =  sthirugn-enablemanifest"}, "apiv"=>"v2"}

Comment 8 Stephen Benjamin 2015-04-07 08:55:45 UTC
*** Bug 1208604 has been marked as a duplicate of this bug. ***

Comment 9 Stephen Benjamin 2015-04-07 08:56:44 UTC
This prevents non-admin users from subscribing to mail notifications.

Comment 10 Bryan Kearney 2015-04-08 12:04:00 UTC
Upstream bug assigned to mhulan

Comment 11 Bryan Kearney 2015-04-09 12:04:06 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/7615 has been closed
-------------
Marek Hulán
Applied in changeset commit:76fca93b0093e9b4174d1a888ffca9f3fcb886c9.

Comment 13 sthirugn@redhat.com 2015-04-27 13:54:38 UTC
Verified as per the steps mentioned in Comment 4.

Satellite-6.1.0-RHEL-6-20150424.0

Comment 14 Bryan Kearney 2015-08-11 13:27:15 UTC
This bug is slated to be released with Satellite 6.1.

Comment 15 Bryan Kearney 2015-08-12 14:01:23 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


Note You need to log in before you can comment on or make changes to this bug.