Bug 1232855

Summary: POST /api/v2/realms returns an incomplete set of attributes
Product: Red Hat Satellite Reporter: jaudet
Component: APIAssignee: Federico Simoncelli <fsimonce>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bkearney, ohadlevy, orabin
Target Milestone: UnspecifiedKeywords: 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:
Description Flags
Output of foreman-debug from a Satellite 6.1 system on RHEL 6.6. none

Description jaudet 2015-06-17 16:09:31 UTC
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:

Comment 1 RHEL Program Management 2015-06-17 16:13:01 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.

Comment 3 alon 2015-07-14 12:19:12 UTC
Fixed in http://projects.theforeman.org/issues/10356

Comment 4 Bryan Kearney 2016-07-08 20:35:45 UTC
Per 6.3 planning, moving out non acked bugs to the backlog

Comment 7 Ohad Levy 2016-12-01 08:44:37 UTC

*** This bug has been marked as a duplicate of bug 1216236 ***