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 1507523

Summary: Cannot view errata, when user has permission to view them
Product: Red Hat Satellite Reporter: Sanket Jagtap <sjagtap>
Component: Errata ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: inecas, sghai, sjagtap
Target Milestone: UnspecifiedKeywords: Regression
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-31 14:51:30 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
Filer on the user's role none

Comment 4 Ivan Necas 2017-10-31 08:25:57 UTC
If you give the view permissions on both products, does it work?

Comment 5 Ivan Necas 2017-10-31 08:43:07 UTC
So far, I'm not able to reproduce this issue? Were you able to reproduce this manually, or we've seen it in the automation only so far? How exactly the role assigned to the user looked like?

Comment 6 Sanket Jagtap 2017-10-31 10:17:03 UTC
Created attachment 1345824 [details]
Filer on the user's role

I was able to reproduce this, 

The role is not in any org/loc

PFA for filters on role


hammer -v -u 82dSz5ARxO -p ECOTf6BwL4 --output=csv erratum list --per-page="10000"

If we remove the --organization-id , then I am able to see the erratum for the product with filter applied

Comment 7 Sanket Jagtap 2017-10-31 11:12:18 UTC
Also no even if I add permissions to view two products I hit the issue,

But ,when I try the command without org-id parameter I am able to see desired output

Comment 8 Ivan Necas 2017-10-31 11:48:11 UTC
I was only able to reproduce the issue, when the user was not assigned to the corresponding org. Could that be the case?

Comment 9 Sanket Jagtap 2017-10-31 12:22:35 UTC
Yes, user is not in the org, 
On assigning the org to the user the errata was listed,

hammer -v -u P4M6NAACCg -p ZcUi3DFcqE --output=csv erratum list --organization-id="45" --per-page="10000"

Comment 10 Ivan Necas 2017-10-31 12:47:12 UTC
In that case, it's not a bug, but a fix for a bug, as before we let listing erratum and we were not respecting the org association

Comment 11 Ivan Necas 2017-10-31 14:51:30 UTC
As per https://bugzilla.redhat.com/show_bug.cgi?id=1507523#c10, cloisng as NOTABUG