Uploaded image for project: 'DeltaCloud'
  1. DeltaCloud
  2. DTACLOUD-468

CIMI: Creating a machine using XML leaves "name" and "description" with """ added

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • CIMI/Frontend
    • None
    • Deltacloud commit version: 2b4831b6ec5a483693441e5925ae5cfa5487fa52
      CIMI frontend
      mock provider

    Description

      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>

      Attachments

        Activity

          People

            Unassigned Unassigned
            rlandy Ronelle Landy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: