diff options
author | vasraz <vasyl.razinkov@est.tech> | 2023-10-09 14:16:08 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2023-10-26 18:31:15 +0000 |
commit | 233b5829eb139648bd8c8dee64f0815f28c1501f (patch) | |
tree | a14b3d4fc670003261704f399145c07d8a2c3a95 /common-be | |
parent | da15f0dfe6322bdf347b839a27c2af216b7327a9 (diff) |
Fix 'JUEL expression syntax prevents download'-bug
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: Ie1543a5c1af0b2902bb7fd1ea7acdee0ef518136
Issue-ID: SDC-4650
Diffstat (limited to 'common-be')
-rw-r--r-- | common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java index e210b93e71..dbef13ec01 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ToscaFunctionJsonDeserializer.java @@ -27,7 +27,6 @@ import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.deser.std.StdDeserializer; import com.google.common.base.CharMatcher; - import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -246,7 +245,7 @@ public class ToscaFunctionJsonDeserializer extends StdDeserializer<ToscaFunction ); if (toscaFunctionType == ToscaFunctionType.STRING) { final ToscaStringParameter toscaStringParameter = new ToscaStringParameter(); - toscaStringParameter.setValue(CharMatcher.anyOf("\"\'").trimFrom(parameterNode.get("value").asText())); + toscaStringParameter.setValue(CharMatcher.anyOf("\"\'[] ").trimFrom(parameterNode.get("value").asText())); functionParameterList.add(toscaStringParameter); } else { final ToscaFunction toscaFunction = this.deserializeToscaFunction(parameterNode, context); |