From d0dd24994a0c1aa0f6600adceeaf76c9bdd064b2 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 --- .../src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'appc-config/appc-config-generator/provider/src/main/java/org') 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