Bug 1474888 - Getting 403 forbidden error while setting the email preference or sending the test email with a normal user with viewer access
Getting 403 forbidden error while setting the email preference or sending the...
Status: VERIFIED
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Email (Show other bugs)
6.2.10
x86_64 Linux
medium Severity medium (vote)
: GA
: --
Assigned To: Amir
Marek Hulan
http://projects.theforeman.org/issues...
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-25 10:59 EDT by Ganesh Payelkar
Modified: 2017-08-15 15:49 EDT (History)
7 users (show)

See Also:
Fixed In Version: foreman-1.15.2
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 16807 None None None 2017-07-26 21:04 EDT

  None (edit)
Description Ganesh Payelkar 2017-07-25 10:59:30 EDT
Description of problem:

Getting 403 forbidden error while setting the email preference or sending the test email with a normal user with viewer access logged in

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

How reproducible:


Steps to Reproduce:
1. Added role view_mail_notifications only: no, mail button does NOT work, no test emails were sent.

2. With edit_user permission only: email button DOES works. Permission "view_mail_notifications" is NOT necessary for test emails.

3.

Actual results:

Getting 403 when assigned viewer role permission. 

Expected results:

The view_mail_notifications role must be sufficient to send the test email.  

Additional info:
Comment 2 Nagoor Shaik 2017-07-26 02:05:22 EDT
Created redmine issue http://projects.theforeman.org/issues/20410

and PR submitted upstream https://github.com/theforeman/foreman/pull/4697
Comment 6 pm-sat@redhat.com 2017-07-27 04:11:40 EDT
Upstream bug assigned to afeferku@redhat.com
Comment 7 pm-sat@redhat.com 2017-07-27 04:11:44 EDT
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16807 has been resolved.

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