Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1232855 - POST /api/v2/realms returns an incomplete set of attributes
Summary: POST /api/v2/realms returns an incomplete set of attributes
Keywords:
Status: CLOSED DUPLICATE of bug 1216236
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Federico Simoncelli
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-17 16:09 UTC by jaudet
Modified: 2016-12-01 08:44 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-01 08:44:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Output of foreman-debug from a Satellite 6.1 system on RHEL 6.6. (458.19 KB, application/x-xz)
2015-06-17 16:09 UTC, jaudet
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.