Fix vm-id URL parsing 09/115509/1
authorMarcin Wilk <m.wilk@samsung.com>
Mon, 30 Nov 2020 11:18:03 +0000 (12:18 +0100)
committerMarcin Wilk <m.wilk@samsung.com>
Mon, 30 Nov 2020 11:18:03 +0000 (12:18 +0100)
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 <m.wilk@samsung.com>
Change-Id: I1fd1432ad81d432b51055e99c3697f3280f82e9a

appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java

index e38f8b3..f49facf 100644 (file)
@@ -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