From eef226d456681641bb12cdc9217a4b0af303ad6c Mon Sep 17 00:00:00 2001 From: Sander Verbruggen Date: Thu, 14 Dec 2023 17:39:07 +0100 Subject: [PATCH] FDP-1853: Also remove 'notifications' from path Signed-off-by: Sander Verbruggen --- .../java/org/gxf/soapbridge/soap/endpoints/SoapEndpoint.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/src/main/java/org/gxf/soapbridge/soap/endpoints/SoapEndpoint.java b/application/src/main/java/org/gxf/soapbridge/soap/endpoints/SoapEndpoint.java index 4fa2cf4..b2ad1a6 100644 --- a/application/src/main/java/org/gxf/soapbridge/soap/endpoints/SoapEndpoint.java +++ b/application/src/main/java/org/gxf/soapbridge/soap/endpoints/SoapEndpoint.java @@ -41,6 +41,7 @@ public class SoapEndpoint implements HttpRequestHandler { private static final Logger LOGGER = LoggerFactory.getLogger(SoapEndpoint.class); private static final String URL_PROXY_SERVER = "/proxy-server"; + private static final String URL_NOTIFICATIONS = "/proxy-server/notifications"; private static final int INVALID_CUSTOM_TIME_OUT = -1; @@ -211,7 +212,7 @@ private String sanitize(final String value) { } private String getContextForRequestType(final HttpServletRequest request) { - return request.getRequestURI().replace(URL_PROXY_SERVER, ""); + return request.getRequestURI().replace(URL_NOTIFICATIONS, "").replace(URL_PROXY_SERVER, ""); } private String readSoapPayload(final HttpServletRequest request) {