You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2022/06/27 08:59:12 UTC

[camel] 01/02: CAMEL-18231: Upgrade Vert.x to 4.3.1

This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit b87139e31f7b42deed5cfe629c8be12ef79ff964
Author: James Netherton <ja...@gmail.com>
AuthorDate: Mon Jun 27 08:15:13 2022 +0100

    CAMEL-18231: Upgrade Vert.x to 4.3.1
---
 camel-dependencies/pom.xml                                          | 2 +-
 .../component/platform/http/vertx/VertxPlatformHttpConsumer.java    | 6 ++++--
 parent/pom.xml                                                      | 2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/camel-dependencies/pom.xml b/camel-dependencies/pom.xml
index 00bde6afebe..69097aba12e 100644
--- a/camel-dependencies/pom.xml
+++ b/camel-dependencies/pom.xml
@@ -535,7 +535,7 @@
     <vavr-version>0.10.2</vavr-version>
     <velocity-tools-version>3.1</velocity-tools-version>
     <velocity-version>2.3</velocity-version>
-    <vertx-version>4.2.7</vertx-version>
+    <vertx-version>4.3.1</vertx-version>
     <vysper-version>0.7</vysper-version>
     <web3j-quorum-version>0.8.0</web3j-quorum-version>
     <web3j-version>3.6.0</web3j-version>
diff --git a/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpConsumer.java b/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpConsumer.java
index 74b12db353e..3679fd97efa 100644
--- a/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpConsumer.java
+++ b/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpConsumer.java
@@ -33,6 +33,7 @@ import io.vertx.core.buffer.Buffer;
 import io.vertx.core.http.HttpMethod;
 import io.vertx.ext.auth.User;
 import io.vertx.ext.web.FileUpload;
+import io.vertx.ext.web.RequestBody;
 import io.vertx.ext.web.Route;
 import io.vertx.ext.web.RoutingContext;
 import io.vertx.ext.web.impl.RouteImpl;
@@ -269,7 +270,8 @@ public class VertxPlatformHttpConsumer extends DefaultConsumer {
         } else {
             Method m = Method.valueOf(ctx.request().method().name());
             if (m.canHaveBody()) {
-                final Buffer body = ctx.getBody();
+                final RequestBody requestBody = ctx.body();
+                final Buffer body = requestBody.buffer();
                 if (body != null) {
                     result.setBody(body);
                 } else {
@@ -282,7 +284,7 @@ public class VertxPlatformHttpConsumer extends DefaultConsumer {
         return result;
     }
 
-    private void populateAttachments(Set<FileUpload> uploads, Message message) {
+    private void populateAttachments(List<FileUpload> uploads, Message message) {
         for (FileUpload upload : uploads) {
             final String name = upload.name();
             final String fileName = upload.fileName();
diff --git a/parent/pom.xml b/parent/pom.xml
index 4649f0c83f1..aa6790e6367 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -522,7 +522,7 @@
         <vavr-version>0.10.2</vavr-version>
         <velocity-tools-version>3.1</velocity-tools-version>
         <velocity-version>2.3</velocity-version>
-        <vertx-version>4.2.7</vertx-version>
+        <vertx-version>4.3.1</vertx-version>
         <vysper-version>0.7</vysper-version>
         <web3j-version>3.6.0</web3j-version>
         <web3j-quorum-version>0.8.0</web3j-quorum-version>