+++ This bug was initially created as a clone of Bug #1230865 +++ Description of problem: Location can be associated with zero or more media. Unfortunately, it is impossible to update an location'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. How reproducible: 100% Steps to Reproduce: 1. Create an location. 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 >>> loc = entities.Location().create(create_missing=True) >>> loc.media = [entities.Media().create(create_missing=True)] >>> loc.update_payload(['media']) {u'location': {'media_ids': [48]}} # This is the JSON payload >>> response = loc.update_raw(['media']) >>> response.status_code 500 >>> response.json() {u'error': {u'message': u'unknown attribute: media_ids'}} Expected results: The location is successfully updated. Additional info: n/a
s/organization/location in step #3
Moving 6.2 bugs out to sat-backlog.
Thank you for your bug report. Given our other priorities, I do not see us addressing this in the next few releases. I am therefore closing this out. If you feel that this is a mistake, please feel free to re-open with additional information. Thank you for your interest in Red Hat Satellite.