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 - Non-admin user unable to set email notifications
Summary: Non-admin user unable to set email notifications
Keywords:
Status: CLOSED DUPLICATE of bug 1145814
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Stephen Benjamin
QA Contact: sthirugn@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-02 16:24 UTC by sthirugn@redhat.com
Modified: 2017-02-23 20:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-07 08:55:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
foreman-debug (480.70 KB, application/x-xz)
2015-04-02 16:24 UTC, sthirugn@redhat.com
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1145814 0 unspecified CLOSED unable to create a role filter 2021-02-22 00:41:40 UTC

Internal Links: 1145814

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 ***


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