Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-1055

XML POST: Payloads are not well-formed XML documents

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Highest
    • Resolution: Unresolved
    • None
    • 7.0.0
    • restconf-nb

    Description

      According to XML Syntax (w3schools.com) XML documents must contain one root element that is the parent of all other elements.

      But currently ODL is accepting POST XML requests like this:

      <?xml version="1.0" encoding="UTF-8"?><topology-id xmlns="urn:TBD:params:xml:ns:yang:network-topology">topology-id</topology-id>

      And rejects POST XML requests like this:

      <?xml version="1.0" encoding="UTF-8"?><network-topology xmlns="urn:TBD:params:xml:ns:yang:network-topology">    <topology-id xmlns="urn:TBD:params:xml:ns:yang:network-topology">topology-id</topology-id></network-topology> 

      For http://192.168.56.25:8181/rests/data/network-topology:network-topology/topology=topology-id paths.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ivanhrasko Ivan Hrasko
            ivanhrasko Ivan Hrasko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: