Bug 1261047 - PUT /api/v2/medium/:id doesn't return all attributes like location and organization
Summary: PUT /api/v2/medium/:id doesn't return all attributes like location and organi...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Organizations and Locations
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-08 13:32 UTC by Sachin Ghai
Modified: 2017-01-12 15:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-12 15:11:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sachin Ghai 2015-09-08 13:32:49 UTC
Description of problem:

when we update the media following attributes are returned:

>>> media_update.keys()
[u'name', u'config_path', u'created_at', u'updated_at', u'media_path', u'path', u'os_family', u'id', u'image_path']

However, it should return all as below:
>>> media_get = entities.Media(server_config, id=media_create['id']).read_json()

>>> media_get.keys()
[u'organizations', u'name', u'created_at', u'updated_at', u'locations', u'os_family', u'operatingsystems', u'path', u'id']

Please note that Organizations, locations and operatingsystems are missing while update.


Version-Release number of selected component (if applicable):
sat6.1.2 snap1

How reproducible:
always

Steps to Reproduce:
1. Issue HTTP PUT request to https://sat.example.com/api/v2/medium/:id
2. check json payload
3.

Actual results:
Some of the attributes are missing when server returned attributes from  HTTP PUT request to https://sat.example.com/api/v2/medium/:id

Expected results:
should show all attributes

Additional info:

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

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

Comment 5 Bryan Kearney 2017-01-12 15:11: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.