Bug 1232855
Summary: | POST /api/v2/realms returns an incomplete set of attributes | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | jaudet | ||||
Component: | API | Assignee: | Federico Simoncelli <fsimonce> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Katello QA List <katello-qa-list> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.1.0 | CC: | bkearney, ohadlevy, orabin | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-12-01 08:44:37 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: | |||||||
Attachments: |
|
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. Per 6.3 planning, moving out non acked bugs to the backlog *** This bug has been marked as a duplicate of bug 1216236 *** |
Created attachment 1040005 [details] Output of foreman-debug from a Satellite 6.1 system on RHEL 6.6. Description of problem: A realm has at least the following attributes: * location * name * organization * realm_proxy * realm_type Unfortunately, when one creates a new realm via an HTTP POST request to `/api/v2/realms`, the server returns the following attributes: * created_at * hostgroups_count * hosts_count * id * name * realm_proxy_id * realm_type * updated_at The following attributes are completely missing from the server's response: * location * organization Version-Release number of selected component (if applicable): 6.1.0. See foreman-debug, attached. How reproducible: 100% Steps to Reproduce: 1. Issue an HTTP POST request to `/api/v2/realms`. 2. Capture the server's response and inspect the JSON payload. 3. Discover that several attributes are missing. Actual results: The "location" and "organization" fields are not described by the server's response. Expected results: The "location" and "organization" fields are described by the server's response. Additional info: