[YANGTOOLS-289] Failure to emit empty NETCONF-acquired data in JSON Created: 05/Sep/14  Updated: 10/Apr/22  Resolved: 05/Sep/14

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Duplicate
duplicates CONTROLLER-767 GET json request results in HTTP 500 ... Resolved
External issue ID: 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.



 Comments   
Comment by Robert Varga [ 05/Sep/14 ]

https://git.opendaylight.org/gerrit/10837

Generated at Wed Feb 07 20:52:48 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.