Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1234999 - PUT /api/v2/domains/:id returns an incomplete set of attributes
PUT /api/v2/domains/:id returns an incomplete set of attributes
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: API (Show other bugs)
6.1.0
Unspecified Unspecified
unspecified Severity unspecified (vote)
: Unspecified
: Unused
Assigned To: alon
jcallaha
:
Depends On: 1216236
Blocks:
  Show dependency treegraph
 
Reported: 2015-06-23 13:40 EDT by jaudet
Modified: 2016-11-30 19:26 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-27 04:52:54 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Output of foreman-debug from a Satellite 6.1.0 system running RHEL 7.1. (451.49 KB, application/x-xz)
2015-06-23 13:40 EDT, jaudet
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1500 normal SHIPPED_LIVE Red Hat Satellite 6.2 Base Libraries 2016-07-27 08:24:38 EDT

  None (edit)
Description jaudet 2015-06-23 13:40:53 EDT
Created attachment 1042458 [details]
Output of foreman-debug from a Satellite 6.1.0 system running RHEL 7.1.

Description of problem:
A domain has at least the following attributes:

* dns
* domain_parameters_attributes
* fullname
* id
* location
* name
* organization

When one updates a domain, the following attributes are returned:

* created_at
* dns_id
* fullname
* hostgroups_count
* hosts_count
* id
* name
* updated_at

The following attributes are missing from the response:

* domain_parameters_attributes
* location
* organization

Version-Release number of selected component (if applicable):
Satellite 6.1.0. Foreman-debug is attached.

How reproducible:
100%

Steps to Reproduce:
1. Issue HTTP PUT request to https://sat.example.com/api/v2/domains/:id
2. Capture the response. Examine the JSON payload and discover that several
   attributes are not mentioned.
3. There is no step three.

Actual results:
See "Description of problem" section.

Expected results:
See "Description of problem" section.

Additional info:
Comment 1 RHEL Product and Program Management 2015-06-23 13:42:32 EDT
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 08:20:01 EDT
Fixed in http://projects.theforeman.org/issues/10356
Comment 4 Tomer Brisker 2016-04-12 08:48:05 EDT
This has been resolved in current 6.2 snaps, moving to ON_QA for verification.
Comment 5 jcallaha 2016-05-25 13:26:01 EDT
Verified in Satellite 6.2 Beta Snap 12.

{
  "fullname": null,
  "dns_id": null,
  "created_at": "2016-05-19 14:58:38 UTC",
  "updated_at": "2016-05-19 14:58:38 UTC",
  "id": 1,
  "name": "rhq.lab.eng.bos.redhat.com",
  "subnets": [],
  "parameters": [],
  "interfaces": [
    {
      "id": 1,
      "name": "rhsm-qe-1.rhq.lab.eng.bos.redhat.com",
      "ip": "10.16.4.111",
      "mac": "40:f2:e9:69:9c:98",
      "identifier": "enp7s0",
      "primary": true,
      "provision": true,
      "type": "interface"
    }
  ],
  "locations": [],
  "organizations": []
}
Comment 7 errata-xmlrpc 2016-07-27 04:52:54 EDT
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

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