From b4d7955d7fad85ac3f86a55491a6a2a8ba39c5b7 Mon Sep 17 00:00:00 2001 From: ygorelik Date: Mon, 29 Jul 2019 11:21:05 -0700 Subject: [PATCH] Resolved issue #943 --- CHANGES.md | 3 +++ sdk/cpp/CHANGES.md | 2 ++ sdk/cpp/gnmi/src/gnmi_client.cpp | 2 +- sdk/python/CHANGES.md | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 699164143..5e6cf8e7d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,8 +5,11 @@ * Added utility function to compare two entities and build diff ([#925](https://github.com/CiscoDevNet/ydk-gen/issues/925)) #### Resolved GitHub issues + * Incorrect subtree filter using NETCONF service ([#441](https://github.com/CiscoDevNet/ydk-gen/issues/441)) * NETCONF provider should raise more appropriate exceptions ([#774](https://github.com/CiscoDevNet/ydk-gen/issues/774)) + * YList test fails when list entity added before keys are initialized ([#800](https://github.com/CiscoDevNet/ydk-gen/issues/800)) * Go: When entity having children is built from model API the child entities parent is nil ([#938](https://github.com/CiscoDevNet/ydk-gen/issues/938)) + * gNMISession fails to decode GetRequest response when returned values is empty string ([#943](https://github.com/CiscoDevNet/ydk-gen/issues/943)) ### 2019-05-15 version 0.8.3 diff --git a/sdk/cpp/CHANGES.md b/sdk/cpp/CHANGES.md index ac8767e4b..3df4aacc2 100644 --- a/sdk/cpp/CHANGES.md +++ b/sdk/cpp/CHANGES.md @@ -4,8 +4,10 @@ * Added utility function to compare two entities and build diff ([#925](https://github.com/CiscoDevNet/ydk-gen/issues/925)) #### Resolved GitHub issues + * Incorrect subtree filter using NETCONF service ([#441](https://github.com/CiscoDevNet/ydk-gen/issues/441)) * NETCONF provider should raise more appropriate exceptions ([#774](https://github.com/CiscoDevNet/ydk-gen/issues/774)) * YList test fails when list entity added before keys are initialized ([#800](https://github.com/CiscoDevNet/ydk-gen/issues/800)) + * gNMISession fails to decode GetRequest response when returned values is empty string ([#943](https://github.com/CiscoDevNet/ydk-gen/issues/943)) ### 2019-05-15 version 0.8.3 diff --git a/sdk/cpp/gnmi/src/gnmi_client.cpp b/sdk/cpp/gnmi/src/gnmi_client.cpp index a07141be5..911f8d93e 100644 --- a/sdk/cpp/gnmi/src/gnmi_client.cpp +++ b/sdk/cpp/gnmi/src/gnmi_client.cpp @@ -157,7 +157,7 @@ static string format_notification_response(pair prefix_suffix, co // else if ((flag.prefix_has_value) && (flag.path_has_value)) // reply_to_parse.append("\"data\":{" + prefix_to_prepend + ":[" + path_to_prepend + "[" + value + "]]" + "}}"); // else { - string val = (value == "{\"value\":\"null\"}") ? "{}" : value; + string val = (value.empty() || value == "{\"value\":\"null\"}") ? "{}" : value; if (path_to_prepend.length()==0 && val.find("{")==0) reply_val = val; else diff --git a/sdk/python/CHANGES.md b/sdk/python/CHANGES.md index 87406eb65..6feb494ca 100644 --- a/sdk/python/CHANGES.md +++ b/sdk/python/CHANGES.md @@ -5,6 +5,7 @@ * Added utility function to compare two entities and build diff ([#925](https://github.com/CiscoDevNet/ydk-gen/issues/925)) #### Resolved GitHub issues + * Incorrect subtree filter using NETCONF service ([#441](https://github.com/CiscoDevNet/ydk-gen/issues/441)) * NETCONF provider should raise more appropriate exceptions ([#774](https://github.com/CiscoDevNet/ydk-gen/issues/774))