Red Hat Bugzilla – Bug 1390153
/api/v2/hosts/:id does not expose content_source_id
Last modified: 2017-10-09 11:28:21 EDT
Upstream bug component is API - Content
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/15697 has been resolved.
Verified in Satellite 6.2.7 Snap 1 Querying the host, without modification returns { ... "content_source_id": null, ... } Submitting a PUT to the host path with a specific valid ID results in that id being saved/displayed in subsequent requests. { ... "content_source_id": null, ... } Submitting a PUT to the host path with an invalid ID results in the following error message. { "error": { "message": "ERROR: insert or update on table \"hosts\" violates foreign key constraint \"hosts_content_source_id_fk\"\nDETAIL: Key (content_source_id)=(101) is not present in table \"smart_proxies\".\n" } }
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/RHBA-2017:0197
covered for clones https://bugzilla.redhat.com/show_bug.cgi?id=1488130 https://bugzilla.redhat.com/show_bug.cgi?id=1339613