From e80ce5cea0db50d11a523f8979640c16562bcf37 Mon Sep 17 00:00:00 2001 From: Luong Minh Luat <157108501+lmluat-axonivy@users.noreply.github.com> Date: Thu, 19 Dec 2024 10:05:31 +0700 Subject: [PATCH] feature/IVYPORTAL-18034-Information-exposure-through-an-error-message (#1326) * feature/IVYPORTAL-18034-Information-exposure-through-an-error-message - Handle security warning * feature/IVYPORTAL-18034-Information-exposure-through-an-error-message-master - Update ChatBotRestService --- .../portal/src/com/axonivy/portal/rest/ChatBotRestService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AxonIvyPortal/portal/src/com/axonivy/portal/rest/ChatBotRestService.java b/AxonIvyPortal/portal/src/com/axonivy/portal/rest/ChatBotRestService.java index d38106741b3..438d6d470f6 100644 --- a/AxonIvyPortal/portal/src/com/axonivy/portal/rest/ChatBotRestService.java +++ b/AxonIvyPortal/portal/src/com/axonivy/portal/rest/ChatBotRestService.java @@ -63,7 +63,8 @@ public Response processes(@PathParam("clientId") String clientId, ChatbotPayload return Response.ok(toJson(response)).build(); } catch (NotFoundException e) { - return Response.status(Status.NOT_FOUND).entity(e.getMessage()).build(); + Ivy.log().error(e); + return Response.status(Status.NOT_FOUND).build(); } }