Bug 1789686

Summary: Non-admin user with enough permissions can't generate report of applicable errata
Product: Red Hat Satellite Reporter: Ranjan Kumar <rankumar>
Component: Users & RolesAssignee: Ranjan Kumar <rankumar>
Status: CLOSED ERRATA QA Contact: Radovan Drazny <rdrazny>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: egolov, mhulan
Target Milestone: 6.8.0Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.16.0-0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 12:59:52 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 Ranjan Kumar 2020-01-10 06:43:59 UTC
Description of problem:
Non-admin user with all required permissions can't generate applicable errata report, an empty report is generated.

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


How reproducible: Always


Steps to Reproduce:
1. Create a non-admin user, assign Default Org/Loc
2. Create role and assign all permissions of "Report template" and "Satellite tasks/task"
3. Assign a role to previously created user
4. Log in as a user, try to generate an applied errata template. The empty report is generated

Actual results: Blank report is generated


Expected results: It should generate a correct report


Additional info:

Comment 3 Marek Hulan 2020-01-10 08:40:07 UTC
Does the user also have view_hosts and view_errata permissions? If not, add them too.

Comment 4 Ranjan Kumar 2020-01-10 08:49:35 UTC
Yes, We applied org admin and viewer roles but none of them worked.

But this patch resolved the issue

https://github.com/Katello/katello/pull/8506/commits/208509dcea4a3fabdaa02f8a4d6eb16e8c80af0e

Comment 5 Bryan Kearney 2020-01-28 05:03:58 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28715 has been resolved.

Comment 6 Radovan Drazny 2020-07-16 15:34:28 UTC
Tested with Sat 6.8 Snap 8 using the reproducer from the initial report. It was necessary to add the "View hosts" role as mentioned in the comment #3. An applicable errata report was successfully generated using the non-admin user, and correctly filled with data.

Comment 9 errata-xmlrpc 2020-10-27 12:59:52 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 (Important: Satellite 6.8 release), 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/RHSA-2020:4366