Bug 1507523 - Cannot view errata, when user has permission to view them
Summary: Cannot view errata, when user has permission to view them
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Errata Management
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-30 13:54 UTC by Sanket Jagtap
Modified: 2017-10-31 14:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-31 14:51:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Filer on the user's role (26.46 KB, image/png)
2017-10-31 10:17 UTC, Sanket Jagtap
no flags Details

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


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