Bug 1787147
| Summary: | An admin cannot GET subscription/manifest uploaded in org created by another admin | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Jitendra Yejare <jyejare> |
| Component: | Subscription Management | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED ERRATA | QA Contact: | jcallaha |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.7.0 | CC: | jlenz, swadeley, zhunting |
| Target Milestone: | 6.7.0 | Keywords: | Regression, Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | tfm-rubygem-katello-3.14.0.10-1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-04-14 13:28:12 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
Jitendra Yejare
2019-12-31 14:45:21 UTC
Hi Jitendra, is this a regression from previous release? Hello Brad, The bug is not reproducible on Satellite 6.6. So its a regression. Created redmine issue https://projects.theforeman.org/issues/28751 from this bug Hi Jitendra, I'm able to reproduce the issue when using the endpoint GET subscriptions/:id. However, using GET organizations/:id/subscriptions/:id may work around the issue. (that's what the web UI does.) Which API endpoint are you using to make the request? Would using the endpoint above be a viable workaround? Hey Jeremy, Yes, I am using the same endpoint with which you could repro the issue: katello/api/v2/subscriptions I think the workaround is viable and we can all-together remove the katello/api/v2/subscriptions that has nothing to do with org. Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28751 has been resolved. see also Bug 1774953 - GET katello/api/v2/subscriptions/:id always fails with error: This subscription is not relevant to the current organization Verified in Satellite 6.7 Beta Followed the reproducer steps and was able to pull the subscriptions from the other organization, when querying as the admin user. -bash-4.2# curl -u admin:changeme https://$(hostname)/katello/api/organizations/24/subscriptions {"organization":{},"total":2,"subtotal":2,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":"name","order":"asc"},"results": ... Platforms","unmapped_guest":false,"virt_only":false,"virt_who":false,"upstream":true,"upstream_pool_id":"_______________"}]} -bash-4.2# curl -u admin:changeme https://$(hostname)/katello/api/subscriptions {"organization":{},"total":4,"subtotal":4,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":"name","order":"asc"},"results": ... tools","unmapped_guest":false,"virt_only":false,"virt_who":false,"upstream":false,"upstream_pool_id":null}]} -bash-4.2# curl -u admin:changeme https://$(hostname)/katello/api/v2/subscriptions {"organization":{},"total":4,"subtotal":4,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":"name","order":"asc"},"results": ... tools","unmapped_guest":false,"virt_only":false,"virt_who":false,"upstream":false,"upstream_pool_id":null}]} 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, 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:1454 |