From d22bec2a50f46c67b9c0ac45c09da528b869a8be 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); }