From cb99663e5f35a74502bd31c63550a458cebcd0c8 Mon Sep 17 00:00:00 2001 From: lmluat-axonivy Date: Thu, 19 Dec 2024 09:52:42 +0700 Subject: [PATCH] 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(); } }