You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Michal Fojtik (JIRA)" <ji...@apache.org> on 2012/12/11 14:51:20 UTC

[jira] [Created] (DTACLOUD-396) Random order of XML elements in CIMI (MRI 1.8)

Michal Fojtik created DTACLOUD-396:
--------------------------------------

             Summary: Random order of XML elements in CIMI (MRI 1.8)
                 Key: DTACLOUD-396
                 URL: https://issues.apache.org/jira/browse/DTACLOUD-396
             Project: DeltaCloud
          Issue Type: Bug
            Reporter: Michal Fojtik


Hi,

Today I saw something like this when I accidentally kept running DC on 1.8.7 ruby:

GET /api/machines

...snip...

<Machine>
<state>STARTED</state>
<id>http://localhost:3001/cimi/machines/inst6</id>
<volumes href="http://localhost:3001/cimi/machines/inst6/volumes" />
<description>No description set for Machine myDatabaseMachine</description>
<cpu>1</cpu>
<created>2012-12-11T14:33:01+01:00</created>
<property key="credential">http://localhost:3001/cimi/credentials</property>
<property key="machine_image">http://localhost:3001/cimi/machine_images/img1</property>
<name>myDatabaseMachine</name>
<disks href="http://localhost:3001/cimi/machines/inst6/disks" />
<memory>1782579</memory>
<operation href="http://localhost:3001/cimi/machines/inst6/restart" rel="http://schemas.dmtf.org/cimi/1/action/restart" />
<operation href="http://localhost:3001/cimi/machines/inst6/stop" rel="http://schemas.dmtf.org/cimi/1/action/stop" />
<operation href="http://localhost:3001/cimi/machine_images" rel="http://schemas.dmtf.org/cimi/1/action/capture" />
</Machine>

...snip....

Seems like the order of XML elements is random, I guess it has something todo with Ruby 1.8 lack of OrderedHash. 

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