This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.14.x by this push:
new 77a9e2d2f39 CAMEL-22474: camel-http - HttpActivityListener null
exchange when redelivery
77a9e2d2f39 is described below
commit 77a9e2d2f39bdcc92445e0299a1e81e544ee4a3d
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 5f1855ba990..003d79aaafe 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
@@ -337,8 +337,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);
}
});