You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by yo...@apache.org on 2021/08/18 01:17:23 UTC

[bookkeeper] 01/03: [Security] Upgrade vertx to 3.9.8, addresses CVE-2018-12541 (#2693)

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

yong pushed a commit to branch branch-4.14
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git

commit b768bbbf65e015e398dc858772c5c299aa16f85d
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Thu Jun 24 06:49:47 2021 +0300

    [Security] Upgrade vertx to 3.9.8, addresses CVE-2018-12541 (#2693)
    
    Fixes #2511
    
    ### Motivation
    
    See #2511
    
    The current vertx version is 3.5.3 which has a vulnerability, CVE-2018-12541 .
    
    ### Changes
    
    - Upgrade [vertx version to 3.9.8](https://github.com/eclipse-vertx/vert.x/releases/tag/3.9.8)
    - Fix issue with deprecated API usage
    
    (cherry picked from commit 6a19e0e3b8d76b5abb872a4cce81f99cbdf36a88)
---
 bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt  | 17 +++++++++--------
 .../src/main/resources/LICENSE-server.bin.txt           | 17 +++++++++--------
 .../apache/bookkeeper/http/vertx/VertxHttpServer.java   |  2 +-
 pom.xml                                                 |  2 +-
 4 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt b/bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt
index c36212f..db59295 100644
--- a/bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt
+++ b/bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt
@@ -236,10 +236,11 @@ Apache Software License, Version 2.
 - lib/io.prometheus-simpleclient_common-0.8.1.jar [12]
 - lib/io.prometheus-simpleclient_hotspot-0.8.1.jar [12]
 - lib/io.prometheus-simpleclient_servlet-0.8.1.jar [12]
-- lib/io.vertx-vertx-auth-common-3.5.3.jar [13]
-- lib/io.vertx-vertx-bridge-common-3.5.3.jar [14]
-- lib/io.vertx-vertx-core-3.5.3.jar [15]
-- lib/io.vertx-vertx-web-3.5.3.jar [16]
+- lib/io.vertx-vertx-auth-common-3.9.8.jar [13]
+- lib/io.vertx-vertx-bridge-common-3.9.8.jar [14]
+- lib/io.vertx-vertx-core-3.9.8.jar [15]
+- lib/io.vertx-vertx-web-3.9.8.jar [16]
+- lib/io.vertx-vertx-web-common-3.9.8.jar [16]
 - lib/log4j-log4j-1.2.17.jar [17]
 - lib/net.java.dev.jna-jna-3.2.7.jar [18]
 - lib/org.apache.commons-commons-collections4-4.1.jar [19]
@@ -315,10 +316,10 @@ Apache Software License, Version 2.
 [10] Source available at http://svn.apache.org/viewvc/commons/proper/logging/tags/commons-logging-1.1.1/
 [11] Source available at https://github.com/netty/netty/tree/netty-4.1.63.Final
 [12] Source available at https://github.com/prometheus/client_java/tree/parent-0.8.1
-[13] Source available at https://github.com/vert-x3/vertx-auth/tree/3.5.3
-[14] Source available at https://github.com/vert-x3/vertx-bridge-common/tree/3.5.3
-[15] Source available at https://github.com/eclipse/vert.x/tree/3.5.3
-[16] Source available at https://github.com/vert-x3/vertx-web/tree/3.5.3
+[13] Source available at https://github.com/vert-x3/vertx-auth/tree/3.9.8
+[14] Source available at https://github.com/vert-x3/vertx-bridge-common/tree/3.9.8
+[15] Source available at https://github.com/eclipse/vert.x/tree/3.9.8
+[16] Source available at https://github.com/vert-x3/vertx-web/tree/3.9.8
 [17] Source available at http://logging.apache.org/log4j/1.2/download.html
 [18] Source available at https://github.com/java-native-access/jna/tree/3.2.7
 [19] Source available at https://git-wip-us.apache.org/repos/asf?p=commons-collections.git;a=tag;h=a3a5ad
diff --git a/bookkeeper-dist/src/main/resources/LICENSE-server.bin.txt b/bookkeeper-dist/src/main/resources/LICENSE-server.bin.txt
index d150d43..f1e50e0 100644
--- a/bookkeeper-dist/src/main/resources/LICENSE-server.bin.txt
+++ b/bookkeeper-dist/src/main/resources/LICENSE-server.bin.txt
@@ -236,10 +236,11 @@ Apache Software License, Version 2.
 - lib/io.prometheus-simpleclient_common-0.8.1.jar [12]
 - lib/io.prometheus-simpleclient_hotspot-0.8.1.jar [12]
 - lib/io.prometheus-simpleclient_servlet-0.8.1.jar [12]
-- lib/io.vertx-vertx-auth-common-3.5.3.jar [13]
-- lib/io.vertx-vertx-bridge-common-3.5.3.jar [14]
-- lib/io.vertx-vertx-core-3.5.3.jar [15]
-- lib/io.vertx-vertx-web-3.5.3.jar [16]
+- lib/io.vertx-vertx-auth-common-3.9.8.jar [13]
+- lib/io.vertx-vertx-bridge-common-3.9.8.jar [14]
+- lib/io.vertx-vertx-core-3.9.8.jar [15]
+- lib/io.vertx-vertx-web-3.9.8.jar [16]
+- lib/io.vertx-vertx-web-common-3.9.8.jar [16]
 - lib/log4j-log4j-1.2.17.jar [17]
 - lib/net.java.dev.jna-jna-3.2.7.jar [18]
 - lib/org.apache.commons-commons-collections4-4.1.jar [19]
@@ -313,10 +314,10 @@ Apache Software License, Version 2.
 [10] Source available at http://svn.apache.org/viewvc/commons/proper/logging/tags/commons-logging-1.1.1/
 [11] Source available at https://github.com/netty/netty/tree/netty-4.1.63.Final
 [12] Source available at https://github.com/prometheus/client_java/tree/parent-0.8.1
-[13] Source available at https://github.com/vert-x3/vertx-auth/tree/3.5.3
-[14] Source available at https://github.com/vert-x3/vertx-bridge-common/tree/3.5.3
-[15] Source available at https://github.com/eclipse/vert.x/tree/3.5.3
-[16] Source available at https://github.com/vert-x3/vertx-web/tree/3.5.3
+[13] Source available at https://github.com/vert-x3/vertx-auth/tree/3.9.8
+[14] Source available at https://github.com/vert-x3/vertx-bridge-common/tree/3.9.8
+[15] Source available at https://github.com/eclipse/vert.x/tree/3.9.8
+[16] Source available at https://github.com/vert-x3/vertx-web/tree/3.9.8
 [17] Source available at http://logging.apache.org/log4j/1.2/download.html
 [18] Source available at https://github.com/java-native-access/jna/tree/3.2.7
 [19] Source available at https://git-wip-us.apache.org/repos/asf?p=commons-collections.git;a=tag;h=a3a5ad
diff --git a/bookkeeper-http/vertx-http-server/src/main/java/org/apache/bookkeeper/http/vertx/VertxHttpServer.java b/bookkeeper-http/vertx-http-server/src/main/java/org/apache/bookkeeper/http/vertx/VertxHttpServer.java
index 31e1117..8d4edd0 100644
--- a/bookkeeper-http/vertx-http-server/src/main/java/org/apache/bookkeeper/http/vertx/VertxHttpServer.java
+++ b/bookkeeper-http/vertx-http-server/src/main/java/org/apache/bookkeeper/http/vertx/VertxHttpServer.java
@@ -82,7 +82,7 @@ public class VertxHttpServer implements HttpServer {
             @Override
             public void start() throws Exception {
                 LOG.info("Starting Vertx HTTP server on port {}", port);
-                vertx.createHttpServer().requestHandler(router::accept).listen(port, future::complete);
+                vertx.createHttpServer().requestHandler(router).listen(port, future::complete);
             }
         });
         try {
diff --git a/pom.xml b/pom.xml
index 75575a6..e32254e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -165,7 +165,7 @@
     <spotbugs-annotations.version>3.1.8</spotbugs-annotations.version>
     <javax-annotations-api.version>1.3.2</javax-annotations-api.version>
     <testcontainers.version>1.15.1</testcontainers.version>
-    <vertx.version>3.5.3</vertx.version>
+    <vertx.version>3.9.8</vertx.version>
     <zookeeper.version>3.6.2</zookeeper.version>
     <snappy.version>1.1.7</snappy.version>
     <jctools.version>2.1.2</jctools.version>