Bug 1237257 - GET /katello/api/v2/content_views/:id does not return organization ID
Summary: GET /katello/api/v2/content_views/:id does not return organization ID
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Jitendra Yejare
URL:
Whiteboard:
Depends On:
Blocks: 1237283
TreeView+ depends on / blocked
 
Reported: 2015-06-30 15:59 UTC by jaudet
Modified: 2019-02-25 21:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1237283 (view as bug list)
Environment:
Last Closed: 2017-01-12 18:22:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Output of foreman-debug from a Satellite 6.0.8 system running on RHEL 6.6. (4.64 MB, application/x-xz)
2015-06-30 15:59 UTC, jaudet
no flags Details

Description jaudet 2015-06-30 15:59:10 UTC
Created attachment 1044717 [details]
Output of foreman-debug from a Satellite 6.0.8 system running on RHEL 6.6.

Description of problem:
One can read a content view by issuing an HTTP GET request to `/katello/api/v2/content_views/:id`. This request returns JSON data in this form:

    {
        'id': …,
        'composite': …,
        'versions': […],
        'organization' {'label': '…', 'name': '…'},
        …
    }

Notice how the "organization" dict does not include an ID. This makes it impossible to know which organization a content view is associated with without performing a search against the server.

Version-Release number of selected component (if applicable):
Satellite 6.0.8. foreman-debug is attached.

How reproducible:
100%

Steps to Reproduce:
1. Issue an HTTP GET request to /katello/api/v2/content_views/:id
2. Capture the server's response and examine the returned JSON.
3. Discover that the 'organization' hash does not include an ID.

Actual results:
See above.

Expected results:
See above.

Additional info:
This bug is fixed in Satellite 6.1.0. A response such as the following is returned:

    {
        'id': 1,
        'label': 'Default_Organization',
        'name': 'Default Organization',
    }

Given that this bug is fixed in a later release and that 6.0.8 has already been released, I do not expect this bug to be fixed in 6.0.8. I have written up this bug for reference purposes. (It's better to have this bug documented in a central public location than in the docstring in some bit of code.)

Comment 1 RHEL Program Management 2015-06-30 16:04:50 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Bryan Kearney 2016-07-26 15:25:24 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 4 Bryan Kearney 2016-07-26 15:43:27 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 6 Bryan Kearney 2017-01-12 18:22:26 UTC
This is an older bug which I do not envision being fixed in the near term. I am closing this out. If you believe doing so is an issue, please feel free to re-open and provide additional business information. Thank you.


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