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 719e55846aaf CAMEL-26140: camel-vertx-http - the undertow test server
routes reply with an empty body (#29052)
719e55846aaf is described below
commit 719e55846aaf519e511b84321afef2b2424ef704
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Nov 3 09:10:08 2026 +0100
CAMEL-26140: camel-vertx-http - the undertow test server routes reply with
an empty body (#29052)
Since CAMEL-26140 the undertow consumer answers 500 to a Map or an object
reply body, instead of an empty 200 with a WARN. The test server routes of
the form and serialized tests ended with the form Map or the deserialized
bean as their body, so five tests failed. They now reply with an empty body.
Signed-off-by: Claus Ibsen <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
.../camel/component/vertx/http/VertxHttpRequestBodyTypesTest.java | 4 +++-
.../camel/component/vertx/http/VertxHttpRequestWithPayloadTest.java | 4 +++-
.../camel/component/vertx/http/VertxHttpSerializedBodyTest.java | 4 +++-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestBodyTypesTest.java
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestBodyTypesTest.java
index 745bd2393b01..460776066f70 100644
---
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestBodyTypesTest.java
+++
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestBodyTypesTest.java
@@ -91,7 +91,9 @@ public class VertxHttpRequestBodyTypesTest extends
VertxHttpTestSupport {
.setBody(simple("Got body: ${body}"));
from(getTestServerUri() + "/form")
- .to("mock:form");
+ .to("mock:form")
+ // the undertow consumer cannot write a Map or an
object as the reply body
+ .setBody(constant(""));
}
};
}
diff --git
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestWithPayloadTest.java
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestWithPayloadTest.java
index 97fc2896a254..d8a5c78e3fbc 100644
---
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestWithPayloadTest.java
+++
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpRequestWithPayloadTest.java
@@ -160,7 +160,9 @@ public class VertxHttpRequestWithPayloadTest extends
VertxHttpTestSupport {
exchange.toString();
}
})
- .to("mock:result");
+ .to("mock:result")
+ // the undertow consumer cannot write a Map or an
object as the reply body
+ .setBody(constant(""));
from(getTestServerUri() + "/upload")
.process(exchange -> {
diff --git
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpSerializedBodyTest.java
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpSerializedBodyTest.java
index 1ec3f621e031..3cda8dca3c2e 100644
---
a/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpSerializedBodyTest.java
+++
b/components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpSerializedBodyTest.java
@@ -128,7 +128,9 @@ public class VertxHttpSerializedBodyTest extends
VertxHttpTestSupport {
}
}
})
- .to("mock:result");
+ .to("mock:result")
+ // the undertow consumer cannot write a Map or an
object as the reply body
+ .setBody(constant(""));
from(getTestServerUri() + "/deserialized")
.process(new Processor() {