Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1208604

Summary: Non-admin user unable to set email notifications
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: Content ManagementAssignee: Stephen Benjamin <stbenjam>
Status: CLOSED DUPLICATE QA Contact: sthirugn <sthirugn>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: cwelton, mmccune
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-07 08:55:45 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:
Attachments:
Description Flags
foreman-debug none

Description sthirugn@redhat.com 2015-04-02 16:24:19 UTC
Created attachment 1010236 [details]
foreman-debug

Description of problem:
Non-admin user unable to set email notifications. Creating a test role for Mail Notification failed

Version-Release number of selected component (if applicable):
Satellite-6.1.0-RHEL-6-20150331.1

How reproducible:
Always

Steps to Reproduce:
1. Create a new role
2. Attempt to create a new filter in the newly created role
   - Go to the role -> Filters -> New Filter -> Select Resource Type = Mail Notification -> Add view_mail_notifications item -> Click on Submit

Actual results:
The page refreshes and the filter is not saved

==> /var/log/foreman/production.log <==
2015-04-02 18:20:10 [I] Processing by FiltersController#create as HTML
2015-04-02 18:20:10 [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"ECR/S1GofTeR9+/9A7AgBsMNbjMSMCl1eO988dBVTdI=", "filter"=>{"role_id"=>"15", "resource_type"=>"MailNotification", "permission_ids"=>["", "92"], "unlimited"=>"1", "location_ids"=>[""], "organization_ids"=>["", "", ""]}, "role_id"=>"15", "commit"=>"Submit"}
2015-04-02 18:20:10 [I] Failed to save: Organization ids You can't assign organizations to this resource
2015-04-02 18:20:10 [I]   Rendered common/_edit_habtm.html.erb (2.8ms)
2015-04-02 18:20:10 [I]   Rendered common/_edit_habtm.html.erb (4.0ms)
2015-04-02 18:20:10 [I]   Rendered filters/_form.html.erb (40.0ms)
2015-04-02 18:20:10 [I]   Rendered filters/new.html.erb within layouts/application (40.6ms)
2015-04-02 18:20:10 [I]   Rendered home/_submenu.html.erb (3.1ms)
2015-04-02 18:20:10 [I]   Rendered home/_user_dropdown.html.erb (1.6ms)
2015-04-02 18:20:10 [I] Read fragment views/tabs_and_title_records-3 (0.1ms)
2015-04-02 18:20:10 [I]   Rendered home/_topbar.html.erb (6.5ms)
2015-04-02 18:20:10 [I]   Rendered layouts/base.html.erb (7.8ms)
2015-04-02 18:20:10 [I] Completed 200 OK in 81ms (Views: 47.0ms | ActiveRecord: 7.5ms)

Expected results:
The filter is saved and user confirmation is displayed.

Additional info:
This bug will prevent setting email notifications for any non admin user.  Without this filter the email notification setting will not be shown for non-admin users.

Comment 3 Stephen Benjamin 2015-04-07 08:55:45 UTC

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