Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-804

Netconf response payload fails to render in JSON, only XML works in RestConf response

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • 2.0.5
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 8927

      Version: Boron-SR3.

      Restconf call to Netconf-mounted router to fetch some data with Accept: json header results in severely truncated response payload.

      The same call with Accept: xml header results in the entire payload correctly rendered.

      Setting TRACE options for netconf within karaf shows the netconf data is indeed intact in the router's RPC response.

      {set TRACE org.opendaylight.netconf.sal.connect.netconf, set TRACE org.opendaylight.netconf}

      Attachments:
      jsonoutputapi.txt:

      • Example RestConf method used
      • An example of the heavily-truncated JSON response
      • The correct payload in the XML response to the same method.
      • Snippet/example from karaf log showing Netconf RPC response payload
      • (also in karaf log) A suspicious (or not) WARN about leading LF (0a) character (which can be seen in the NetconfXMLToMessageDecoder raw netconf response payload).

            bvaradar Balaji Varadaraju
            intensifysecurity@gmail.com JH
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: