summaryrefslogtreecommitdiffstats
path: root/ms/command-executor
diff options
context:
space:
mode:
authorAbdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>2021-11-14 20:44:33 +0200
committerDan Timoney <dtimoney@att.com>2021-11-29 18:09:24 +0000
commit04307eb9aff21a9df0510776be6363e9b71a95b8 (patch)
tree0a3c256d2d8294d7d210d16531fc3077a9586117 /ms/command-executor
parent037e7dccf4fbf483f4504e91cfc74d823a2b026e (diff)
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 <abdelmuhaimen.seaudi@orange.com> Change-Id: I5d0c9fbb7190e8de52bf954ef1af29a6f854f685
Diffstat (limited to 'ms/command-executor')
-rw-r--r--ms/command-executor/src/main/python/command_executor_handler.py2
1 files changed, 1 insertions, 1 deletions
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.