Ronelle Landy created DTACLOUD-468: -------------------------------------- Summary: CIMI: Creating a machine using XML leaves "name" and "description" with """ added Key: DTACLOUD-468 URL: https://issues.apache.org/jira/browse/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 """. If the name and description are passed with quotes, you get double " appearing in the output response. <name>[" myMachine1 "]</name> <description>[" my machine description "]</description> >> curl -X POST -H "accept:application/xml" -H "content-type:application/xml" >> -d '<MachineCreate xmlns="http://schemas.dmtf.org/cimi/1"> <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="http://schemas.dmtf.org/cimi/1" resourceURI="http://schemas.dmtf.org/cimi/1/Machine"> <id>http://localhost:3001/cimi/machines/inst8</id> <name>[" myMachine1 "]</name> <description>[" my machine description "]</description> <created>2013-02-12T15:50:35-05:00</created> <realm>us</realm> <machineImage href="http://localhost:3001/cimi/machine_images/img1" /> <state>STARTED</state> <cpu>1</cpu> <memory>1782579</memory> <disks href="http://localhost:3001/cimi/machines/inst8/disks" /> <volumes href="http://localhost:3001/cimi/machines/inst8/volumes" /> <operation rel="http://schemas.dmtf.org/cimi/1/action/restart" href="http://localhost:3001/cimi/machines/inst8/restart" /> <operation rel="http://schemas.dmtf.org/cimi/1/action/stop" href="http://localhost:3001/cimi/machines/inst8/stop" /> <operation rel="http://schemas.dmtf.org/cimi/1/action/capture" href="http://localhost:3001/cimi/machine_images" /> </Machine> -- 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