This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 81deb7bf32c CAMEL-22474: camel-http - HttpActivityListener null
exchange when redelivery
81deb7bf32c is described below
commit 81deb7bf32c23c7ba50a90b45225fbab0f586b47
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);
}
});