deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (JIRA)" <>
Subject [jira] [Created] (DTACLOUD-468) CIMI: Creating a machine using XML leaves "name" and "description" with "&quot;" added
Date Tue, 12 Feb 2013 20:59:17 GMT
Ronelle Landy created DTACLOUD-468:

             Summary: CIMI: Creating a machine using XML leaves "name" and "description" with
"&quot;" added
                 Key: DTACLOUD-468
             Project: DeltaCloud
          Issue Type: Bug
          Components: CIMI/Frontend
         Environment: Deltacloud commit version: 2b4831b6ec5a483693441e5925ae5cfa5487fa52
CIMI frontend
mock provider
            Reporter: Ronelle Landy

Note that when using the command below to create a machine, the name and description include
 "&quot;". If the name and description are passed with quotes, you get double  &quot;
appearing in the output response.

<name>[&quot; myMachine1 &quot;]</name>
<description>[&quot; my machine description &quot;]</description>

>> curl -X POST -H "accept:application/xml" -H "content-type:application/xml" -d '<MachineCreate
xmlns=""> <name> myMachine1 </name> <description>
my machine description </description> <machineTemplate> <machineConfig href="http://localhost:3001/cimi/machine_configurations/m1-small">
</machineConfig> <machineImage href="http://localhost:3001/cimi/machine_images/img1">
</machineImage> </machineTemplate> </MachineCreate>' --user "un:pw" "localhost:3001/cimi/machines"

<Machine xmlns="" resourceURI="">
  <name>[&quot; myMachine1 &quot;]</name>
  <description>[&quot; my machine description &quot;]</description>
  <machineImage href="http://localhost:3001/cimi/machine_images/img1" />
  <disks href="http://localhost:3001/cimi/machines/inst8/disks" />
  <volumes href="http://localhost:3001/cimi/machines/inst8/volumes" />
  <operation rel="" href="http://localhost:3001/cimi/machines/inst8/restart"
  <operation rel="" href="http://localhost:3001/cimi/machines/inst8/stop"
  <operation rel="" href="http://localhost:3001/cimi/machine_images"

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:

View raw message