Bug 1352657 - GET of diskattachment returns a list of objects without the href property
Summary: GET of diskattachment returns a list of objects without the href property
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.0.2
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ovirt-4.0.2
: 4.0.2
Assignee: Juan Hernández
QA Contact: Carlos Mestre González
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-04 15:29 UTC by Carlos Mestre González
Modified: 2016-08-12 14:22 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-08-12 14:22:29 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.0.z+
rule-engine: planning_ack+
juan.hernandez: devel_ack+
acanan: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 60161 0 master MERGED restapi: Populate links of disk attachments 2016-07-05 09:20:52 UTC
oVirt gerrit 60193 0 ovirt-engine-4.0 MERGED restapi: Populate links of disk attachments 2016-07-05 09:54:44 UTC

Description Carlos Mestre González 2016-07-04 15:29:34 UTC
Description of problem:
Rest api collection of disk attachment objects.

Version-Release number of selected component (if applicable):
rhevm-4.0.2-0.2.rc1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. get a vms disk attachment collection: /ovirt-engine/api/vms/5eab22b7-cfe0-4ce3-96f3-3f0ec88f9960/diskattachments


Actual results:
<disk_attachments>
  <disk_attachment id="6f92b6a8-152b-4020-b341-d983e9df1fe2">
    <bootable>false</bootable>
    <interface>virtio_scsi</interface>
  </disk_attachment>
</disk_attachments>

Expected results:
as with any other response in ovirt the object returns the href property with the link to the disk attachment link:

<disk_attachments>
  <disk_attachment href="/ovirt-engine/api/vms/5eab22b7-cfe0-4ce3-96f3-3f0ec88f9960/diskattachments/6f92b6a8-152b-4020-b341-d983e9df1fe2" id="6f92b6a8-152b-4020-b341-d983e9df1fe2">
    <bootable>false</bootable>
    <interface>virtio_scsi</interface>
  </disk_attachment>
</disk_attachments>


Additional info:

Comment 1 Carlos Mestre González 2016-07-26 16:42:05 UTC
in version 4.0.2-1


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