[
https://issues.apache.org/jira/browse/DTACLOUD-433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13561789#comment-13561789
]
Ronelle Landy commented on DTACLOUD-433:
----------------------------------------
After applying http://tracker.deltacloud.org/set/272 ... if I understand the
specification correctly, then David's comments above still stand:
(looking at the output from git commit version
4b95b20e08c158ce863ede7ed07cd22e0068825e + the applied tracker set):
***************************
>> curl -X GET -H "accept:application/xml" --user "un:pw"
>> http://localhost:3001/cimi/machines?$select=name
<Collection xmlns="http://schemas.dmtf.org/cimi/1"
resourceURI="http://schemas.dmtf.org/cimi/1/MachineCollection">
<id>http://localhost:3001/cimi/machines</id>
<count>2</count>
<Machine>
<id>http://localhost:3001/cimi/machines/inst0</id>
<name>Mock Instance With Profile Change</name>
<description>No description set for Machine Mock Instance With Profile
Change</description>
<created>2013-01-24T12:36:02-05:00</created>
<property
key="machine_image">http://localhost:3001/cimi/machine_images/img1</property>
<property key="credential">http://localhost:3001/cimi/credentials</property>
<realm>us</realm>
<machineImage href="http://localhost:3001/cimi/machine_images/img1" />
<state>STARTED</state>
<cpu>1</cpu>
<memory>12582912</memory>
<disks href="http://localhost:3001/cimi/machines/inst0/disks" />
<volumes href="http://localhost:3001/cimi/machines/inst0/volumes" />
<operation rel="http://schemas.dmtf.org/cimi/1/action/restart"
href="http://localhost:3001/cimi/machines/inst0/restart" />
<operation rel="http://schemas.dmtf.org/cimi/1/action/stop"
href="http://localhost:3001/cimi/machines/inst0/stop" />
<operation rel="http://schemas.dmtf.org/cimi/1/action/capture"
href="http://localhost:3001/cimi/machine_images" />
</Machine>
<Machine>
<id>http://localhost:3001/cimi/machines/inst1</id>
<name>MockUserInstance</name>
<description>No description set for Machine MockUserInstance</description>
<created>2013-01-24T12:36:02-05:00</created>
<property
key="machine_image">http://localhost:3001/cimi/machine_images/img3</property>
<property key="credential">http://localhost:3001/cimi/credentials</property>
<realm>us</realm>
<machineImage href="http://localhost:3001/cimi/machine_images/img3" />
<state>STARTED</state>
<cpu>1</cpu>
<memory>1782579</memory>
<disks href="http://localhost:3001/cimi/machines/inst1/disks" />
<volumes href="http://localhost:3001/cimi/machines/inst1/volumes" />
<operation rel="http://schemas.dmtf.org/cimi/1/action/restart"
href="http://localhost:3001/cimi/machines/inst1/restart" />
<operation rel="http://schemas.dmtf.org/cimi/1/action/stop"
href="http://localhost:3001/cimi/machines/inst1/stop" />
<operation rel="http://schemas.dmtf.org/cimi/1/action/capture"
href="http://localhost:3001/cimi/machine_images" />
</Machine>
<operation rel="add" href="http://localhost:3001/cimi/machines" />
</Collection>
[root@cloud-qe-15 ~]#
*****************************
So, the href for disks and volumes etc. are correct now, but the problem
remains: if I used: http://localhost:3001/cimi/machines?$select=name,
volumes, disks etc. should not be returned at all.
Please advise.
> Wrong :href attribute in disks when using $select=name
> ------------------------------------------------------
>
> Key: DTACLOUD-433
> URL: https://issues.apache.org/jira/browse/DTACLOUD-433
> Project: DeltaCloud
> Issue Type: Bug
> Reporter: Michal Fojtik
> Assignee: Michal Fojtik
>
> When doing:
> http://localhost:3001/cimi/machines?$select=name
> The result is:
> <Collection xmlns="http://schemas.dmtf.org/cimi/1"
> resourceURI="http://schemas.dmtf.org/cimi/1/MachineCollection">
> <id>http://localhost:3001/cimi/machines</id>
> <count>2</count>
> <Machine>
> <name>MockUserInstance</name>
> <disks href="/disks" />
> <volumes href="/volumes" />
> </Machine>
> <Machine>
> <name>Mock Instance With Profile Change</name>
> <disks href="/disks" />
> <volumes href="/volumes" />
> </Machine>
> <operation rel="add" href="http://localhost:3001/cimi/machines" />
> </Collection>
> The 'href' attribute on disks and volumes is wrong (/disks and /volumes)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira