Bug 1216236
Summary: | POST /api/v2/locations returns an incomplete set of attributes | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | jaudet |
Component: | API | Assignee: | Tomer Brisker <tbrisker> |
Status: | CLOSED ERRATA | QA Contact: | Tomas Strachota <tstrachota> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.1.0 | CC: | bbuckingham, bkearney, jcallaha, jmagen, ohadlevy, tstrachota |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/10356 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-27 08:50:45 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1234964, 1234973, 1234999, 1235012, 1235049, 1235378, 1235380 |
Description
jaudet
2015-04-28 20:24:26 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. This was a known issue that the response of POST/PUT is just the object and it doesn't use a RABL template (render :json => @object), whereas the GET :id included all the relationships which are in the RABL template show.json.rabl Created redmine issue http://projects.theforeman.org/issues/10356 from this bug *** Bug 1234964 has been marked as a duplicate of this bug. *** Moving to POST since upstream bug http://projects.theforeman.org/issues/10356 has been closed ------------- alon goldboim Applied in changeset commit:d575926a689fd6abd6f26ee2823ce95eef07dd38. Failed QA in upstream. Expected ['ancestry', 'compute_resources', 'config_templates', 'created_at', 'description', 'domains', 'environments', 'hostgroups', 'id', 'media', 'name', 'organizations', 'parameters', 'provisioning_templates', 'ptables', 'select_all_types', 'smart_proxies', 'subnets', 'title', 'updated_at', 'users'] Actual POST https://qe-blade-12.idmqe.lab.eng.bos.redhat.com/api/v2/locations/5 { "name": "tester" } --------------------------------------- { "ancestry": null, "created_at": "2015-11-10T15:53:20Z", "description": null, "id": 5, "ignore_types": [ "ProvisioningTemplate", "Hostgroup" ], "katello_default": false, "label": null, "name": "tester", "title": "tester", "updated_at": "2015-11-10T15:53:20Z" } RELEASE: Red Hat Enterprise Linux Server release 7.1 (Maipo) FOREMAN: 1.11.0-develop RUBY: ruby 2.0.0p598 (2014-11-13) [x86_64-linux] PUPPET: 3.8.4 This seems to be resolved in current snaps for Sat6.2. Please retest. Verified in snap 13, POST call returned full details. 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-2016:1500 *** Bug 1232855 has been marked as a duplicate of this bug. *** *** Bug 1235019 has been marked as a duplicate of this bug. *** |