This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.10.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.10.x by this push:
new 2469792f2aa CAMEL-22474: camel-http - HttpActivityListener null
exchange when redelivery
2469792f2aa is described below
commit 2469792f2aa8bf06f4f7e2df8a331a8572aadfc5
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Sep 30 14:53:47 2025 +0200
CAMEL-22474: camel-http - HttpActivityListener null exchange when redelivery
---
.../src/main/java/org/apache/camel/component/http/HttpEndpoint.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
index 21d2b289ecc..ef2371accf3 100644
---
a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
+++
b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
@@ -333,8 +333,8 @@ public class HttpEndpoint extends HttpCommonEndpoint
implements LineNumberAware
if (watch != null) {
elapsed = watch.taken();
}
- Exchange exchange = (Exchange)
context.removeAttribute("org.apache.camel.Exchange");
- HttpHost host = (HttpHost)
context.removeAttribute("org.apache.hc.core5.http.HttpHost");
+ Exchange exchange = (Exchange)
context.getAttribute("org.apache.camel.Exchange");
+ HttpHost host = (HttpHost)
context.getAttribute("org.apache.hc.core5.http.HttpHost");
httpActivityListener.onResponseReceived(this, exchange,
host, response, (HttpEntity) entity, elapsed);
}
});