From: Abdelmuhaimen Seaudi Date: Sun, 14 Nov 2021 18:44:33 +0000 (+0200) Subject: Correct dynamic properties grpc json serializing X-Git-Tag: 1.3.0~18^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F125749%2F3;p=ccsdk%2Fcds.git Correct dynamic properties grpc json serializing Correct the json serializing and escaping in command executor for grpc server Issue-ID: CCSDK-3521 Signed-off-by: Abdelmuhaimen Seaudi Change-Id: I5d0c9fbb7190e8de52bf954ef1af29a6f854f685 --- diff --git a/ms/command-executor/src/main/python/command_executor_handler.py b/ms/command-executor/src/main/python/command_executor_handler.py index 6a301574b..b6d644cba 100644 --- a/ms/command-executor/src/main/python/command_executor_handler.py +++ b/ms/command-executor/src/main/python/command_executor_handler.py @@ -244,7 +244,7 @@ class CommandExecutorHandler(): ### if properties are defined we add them to the command properties = "" if request.properties is not None and len(request.properties) > 0: - properties = " " + re.escape(MessageToJson(request.properties)) + properties = " " + re.escape(MessageToJson(request.properties)).replace('"','\\"') # compatibility hack # check if the path for the request.command does not contain UUID, then add it after cba_name/cba_version path.