Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-751

Outer Container not returned in response during retrieval request for inner resource

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • Helium
    • None
    • restconf
    • None
    • Operating System: Linux
      Platform: PC

    • 1660

    Description

      I tried to save XML data using a POST statement to config root and then confirm it was there using GET retrieval request. This allow occurs using 'accept':'application/json'

      #POST http://localhost:8080/restconf/config/

      1. Actual Response == Exepxted response

      HTTP STATUS 204

      then check want is in the configuration data store.
      #GET

      http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/id1

      1. Actual response

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <node
      xmlns="urn:opendaylight:inventory">
      <id>id1</id>
      </node>

      1. Expected response:

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <nodes>
      <node
      xmlns="urn:opendaylight:inventory">
      <id>id1</id>
      </node>
      <nodes>

        1. Notes,

      GET http://localhost:8080/restconf/config/opendaylight-inventory:nodes/
      showed the nodes container as expected.

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <nodes
      xmlns="urn:opendaylight:inventory">
      <node>
      <id>controller-config</id>
      </node>
      <node>
      <id>controller-config-xml</id>
      </node>
      <node>
      <id>id1</id>
      </node>
      </nodes>

      TEST ENV

      org.opendaylight.controller.version = 0.1
      org.opendaylight.controller.build.scm.version = 78fec1c1c5a3720bd48d1044703824626f08b5d9
      org.opendaylight.controller.build.user = jenkins-controller
      org.opendaylight.controller.build.workspace = **********
      org.opendaylight.controller.build.timestamp = 1409283738738
      org.opendaylight.controller.build.machine = **********
      ~

      No special configuration was needed to replicate this bug. During this test I had 2 controllers ('controller-config' and 'controller-config-xrvr') configured but I don't believe that this affected the results.

      Attachments

        1. opendaylight-inventory.yang
          9 kB
          RichardHill
        2. opendaylight.log
          29 kB
          RichardHill
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tony.tkacik@gmail.com Tony Tkacik
            ricjhill@gmail.com RichardHill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: