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

Failure to emit empty NETCONF-acquired data in JSON

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 1714

    Description

      When we source data from NETCONF, the inbound codec emits an empty string for each empty element, overriding EmptyCodec's result (which is always null).

      This is incorrect behavior, which is manifested on egress in JSON writer, which ends up seeing a String instance where null is expected. Rather than adding a special case to the writer, fix ingress code structure to correctly assign value.

      Attachments

        Issue Links

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

          Activity

            People

              rovarga Robert Varga
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: