From 934771761bb856e14e8cd27a74af53db03f3dace Mon Sep 17 00:00:00 2001 From: Trisha Anand Date: Fri, 3 Jan 2020 20:09:44 +0530 Subject: [PATCH] Handling the json body scenario where html escaping lead to json body for rest api being incorrect. --- .../appsmith/server/services/ActionServiceImpl.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ActionServiceImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ActionServiceImpl.java index 5647e8c3b2..4f90648faf 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ActionServiceImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ActionServiceImpl.java @@ -22,6 +22,7 @@ import com.github.mustachejava.DefaultMustacheFactory; import com.github.mustachejava.Mustache; import com.github.mustachejava.MustacheFactory; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang.StringEscapeUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Example; import org.springframework.data.domain.Sort; @@ -281,9 +282,13 @@ public class ActionServiceImpl extends BaseService