From 20b062cea965728a12560583d7a4e11a5df0b8f2 Mon Sep 17 00:00:00 2001 From: imamSidero Date: Tue, 11 Jul 2023 12:53:42 +0100 Subject: JUEL function value not displayed properly in UI Bug fix for the expression values to escape the special characters Issue-ID: SDC-4564 Signed-off-by: Imam hussain Change-Id: I829d2d1e9a244aba2f87f37280ff0a43f445c9a2 --- .../sdc/be/components/impl/ComponentInstanceBusinessLogic.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'catalog-be/src/main') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java index c6007a3608..ec7fe0c6bf 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ComponentInstanceBusinessLogic.java @@ -42,6 +42,7 @@ import java.util.UUID; import java.util.stream.Collectors; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.MapUtils; +import org.apache.commons.text.StringEscapeUtils; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.tuple.ImmutablePair; import org.json.JSONArray; @@ -1983,7 +1984,7 @@ public class ComponentInstanceBusinessLogic extends BaseBusinessLogic { String propertyParentUniqueId = property.getParentUniqueId(); if (property.isToscaFunction()) { toscaFunctionValidator.validate(property, containerComponent); - property.setValue(property.getToscaFunction().getValue()); + property.setValue(StringEscapeUtils.unescapeJava(property.getToscaFunction().getValue())); } if (CollectionUtils.isNotEmpty(property.getSubPropertyToscaFunctions())) { ToscaPropertyType type = ToscaPropertyType.isValidType(property.getType()); -- cgit 1.2.3-korg