From ff3a4ed0c4d5037bbc2ac46c644cb05b6d0c9c42 Mon Sep 17 00:00:00 2001 From: Marcin Wilk Date: Mon, 30 Nov 2020 12:18:03 +0100 Subject: Fix vm-id URL parsing vm-id APPC request parameter contains a full OpenStack nova VM URL, which is not parsed correctly. This prevents any APPC LCM requests from successfull completion Issue-ID: APPC-1902 Signed-off-by: Marcin Wilk Change-Id: I1fd1432ad81d432b51055e99c3697f3280f82e9a (cherry picked from commit d0dd24994a0c1aa0f6600adceeaf76c9bdd064b2) --- .../src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java b/appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java index e38f8b37a..f49facf93 100644 --- a/appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java +++ b/appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java @@ -66,7 +66,7 @@ public class JSONTool { String oString = o.toString(); //Add escape characters to the string in case it is a string representation //of a json object. - oString = JSONObject.quote(oString); + oString = JSONObject.quote(oString, false); //Remove the surrouding quotes added by the JSONObject.quote() method. //JSONObject.quote() will always return, at minimum, a string with two quotes, //even if a null string is passed to it. So this substring method does not -- cgit 1.2.3-korg