From bb291fa7313f05cdb112f692d591df6e4cfbf0b3 Mon Sep 17 00:00:00 2001 From: Thorsten Schlathoelter Date: Thu, 12 Dec 2024 07:45:41 +0100 Subject: [PATCH] fix: throwsException strategy throws stack overflow exception --- .../citrusframework/http/client/HttpResponseErrorHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/citrus-http/src/main/java/org/citrusframework/http/client/HttpResponseErrorHandler.java b/endpoints/citrus-http/src/main/java/org/citrusframework/http/client/HttpResponseErrorHandler.java index a3a8245971..5d7f9972b8 100644 --- a/endpoints/citrus-http/src/main/java/org/citrusframework/http/client/HttpResponseErrorHandler.java +++ b/endpoints/citrus-http/src/main/java/org/citrusframework/http/client/HttpResponseErrorHandler.java @@ -46,7 +46,7 @@ protected void handleError(ClientHttpResponse response, HttpStatusCode statusCod if (errorHandlingStrategy.equals(ErrorHandlingStrategy.PROPAGATE)) { throw new HttpErrorPropagatingException(response.getStatusCode(), response.getStatusText(), response.getHeaders(), getResponseBody(response), getCharset(response)); } else if (errorHandlingStrategy.equals(ErrorHandlingStrategy.THROWS_EXCEPTION)) { - super.handleError(response); + super.handleError(response, statusCode, url, method); } else { throw new CitrusRuntimeException("Unsupported error strategy: " + errorHandlingStrategy); }