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 1230865 - Cannot use HTTP PUT to associate organization with media
Summary: Cannot use HTTP PUT to associate organization with media
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Martin Bacovsky
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 1236008
TreeView+ depends on / blocked
 
Reported: 2015-06-11 16:17 UTC by jaudet
Modified: 2017-08-01 20:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1236008 (view as bug list)
Environment:
Last Closed: 2017-08-01 20:13:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Output of foreman-debug from a Satellite 6.1 system on RHEL 6.6. (468.69 KB, application/x-xz)
2015-06-11 16:17 UTC, jaudet
no flags Details

Description jaudet 2015-06-11 16:17:55 UTC
Created attachment 1037774 [details]
Output of foreman-debug from a Satellite 6.1 system on RHEL 6.6.

Description of problem:
An organization can be associated with zero or more media. Unfortunately, it is impossible to update an organization's associations with media using an HTTP PUT request to the API.

Version-Release number of selected component (if applicable):
Tested against Satellite 6.1.0 GA 8. Foreman-debug is attached.

How reproducible:
100%

Steps to Reproduce:
1. Create an organization.
2. Create a media.
3. Issue an HTTP PUT request that updates the organization and associates it with the media.

Actual results:

    >>> from nailgun import entities
    >>> org = entities.Organization().create(create_missing=True)
    >>> org.media = [entities.Media().create(create_missing=True)]
    >>> org.update_payload(['media'])
    {u'organization': {'media_ids': [53]}}  # This is the JSON payload
    >>> response = org.update_raw(['media'])
    >>> response.status_code
    500
    >>> response.json()
    {u'error': {u'message': u'unknown attribute: media_ids'}}

Expected results:
The organization is successfully updated.

Additional info:
n/a

Comment 1 RHEL Program Management 2015-06-11 16:32:38 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 2017-08-01 20:13:24 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in product in the forseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.


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