Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1660062

Summary: Rest-API: Link to disk-attachments under storage-domain contains 'null'
Product: [oVirt] ovirt-engine Reporter: Ori Liel <oliel>
Component: RestAPIAssignee: Ori Liel <oliel>
Status: CLOSED CURRENTRELEASE QA Contact: Ravi Nori <rnori>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: bugs, mperina, ratamir, Rhev-m-bugs
Target Milestone: ovirt-4.3.0Flags: rule-engine: ovirt-4.3+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.3.0_rc Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-13 07:45:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ori Liel 2018-12-17 12:27:25 UTC
Description of problem:

Getting disk-attachments under storage-domain via the API returns disk-attachment objects in which the href string contains 'null', something like: ...api/storagedomains/null/diskattachments/yyy/

Steps to Reproduce:

1. Make a get request: GET ...api/storagedomains/xxx/diskattachments

Actual results:

href attributes of the disk-attachments contain 'null' instead of the ID of the storage-domain

Expected results:

Instead of null the hrefs should contain the ids of the storage-domain

Comment 2 Ori Liel 2018-12-24 08:40:44 UTC
Actually the expected results should be that the disks appear under the root of the API, because this was the behavior before: 

.../api/disks/xxx

Comment 3 Sandro Bonazzola 2019-02-13 07:45:00 UTC
This bugzilla is included in oVirt 4.3.0 release, published on February 4th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.