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 2507a032fe8 https://github.com/apache/camel/security/code-scanning/5628
2507a032fe8 is described below
commit 2507a032fe8e12fe1d440f98afa8a0df3985b466
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Mar 22 08:27:48 2024 +0100
https://github.com/apache/camel/security/code-scanning/5628
---
.../src/main/java/org/apache/camel/http/common/CamelServlet.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/components/camel-http-common/src/main/java/org/apache/camel/http/common/CamelServlet.java
b/components/camel-http-common/src/main/java/org/apache/camel/http/common/CamelServlet.java
index 3f29f2b2c20..0d545e5b931 100644
---
a/components/camel-http-common/src/main/java/org/apache/camel/http/common/CamelServlet.java
+++
b/components/camel-http-common/src/main/java/org/apache/camel/http/common/CamelServlet.java
@@ -293,7 +293,11 @@ public class CamelServlet extends HttpServlet implements
HttpRegistryProvider {
}
// we want to handle the UoW
- consumer.createUoW(exchange);
+ try {
+ consumer.createUoW(exchange);
+ } catch (Exception e) {
+ exchange.setException(e);
+ }
boolean isAsync = false;
CompletionStage<?> result = null;