From b153de053994a4b98a18a772647e67f4e984053a Mon Sep 17 00:00:00 2001 From: Joe Di Pol Date: Tue, 20 Dec 2022 12:02:47 -0800 Subject: [PATCH 1/2] Upgrade netty to 4.1.86.Final and use netty bom --- dependencies/pom.xml | 77 +++++--------------------------------------- pom.xml | 6 ---- 2 files changed, 8 insertions(+), 75 deletions(-) diff --git a/dependencies/pom.xml b/dependencies/pom.xml index 7f97b9430be..708ef299c69 100644 --- a/dependencies/pom.xml +++ b/dependencies/pom.xml @@ -122,7 +122,7 @@ 8.0.28 5.12.0.Final 4.4.3 - 4.1.77.Final + 4.1.86.Final 0.0.8.Final 2.37.0 21.3.0.0 @@ -350,31 +350,6 @@ parsson-media ${version.lib.parsson} - - io.netty - netty-handler - ${version.lib.netty} - - - io.netty - netty-handler-proxy - ${version.lib.netty} - - - io.netty - netty-codec-http - ${version.lib.netty} - - - io.netty - netty-codec-http2 - ${version.lib.netty} - - - io.netty - netty-buffer - ${version.lib.netty} - org.eclipse yasson @@ -1234,55 +1209,12 @@ - - io.netty - netty-codec-dns - ${version.lib.netty} - - - io.netty - netty-resolver-dns - ${version.lib.netty} - - - io.netty - netty-transport - ${version.lib.netty} - - - io.netty - netty-transport-native-epoll - ${version.lib.netty} - linux-x86_64 - - - io.netty - netty-transport-native-epoll - ${version.lib.netty} - linux-aarch64 - - - io.netty - netty-transport-native-kqueue - ${version.lib.netty} - osx-x86_64 - io.netty.incubator netty-incubator-transport-native-io_uring ${version.lib.netty-io_uring} linux-x86_64 - - io.netty - netty-transport-native-unix-common - ${version.lib.netty} - - - io.netty - netty-common - ${version.lib.netty} - com.google.errorprone @@ -1455,6 +1387,13 @@ pom import + + io.netty + netty-bom + ${version.lib.netty} + pom + import + com.oracle.database.jdbc ojdbc-bom diff --git a/pom.xml b/pom.xml index 194816e7f71..8b45bfbfb3e 100644 --- a/pom.xml +++ b/pom.xml @@ -65,7 +65,6 @@ 4.13.1 3.2.3 2.23.4 - 2.0.52.Final 0.9.1 0.1.0 2.2.10 @@ -956,11 +955,6 @@ restito ${version.lib.restito} - - io.netty - netty-tcnative-boringssl-static - ${version.lib.netty.tcnative} - org.mockito mockito-core From 099abe12df2ac6c0fc5423482e9ab7d9e270071b Mon Sep 17 00:00:00 2001 From: Joe Di Pol Date: Tue, 20 Dec 2022 12:51:39 -0800 Subject: [PATCH 2/2] Update test for new netty version --- .../io/helidon/reactive/webserver/TestNettyRejectRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactive/webserver/webserver/src/test/java/io/helidon/reactive/webserver/TestNettyRejectRequest.java b/reactive/webserver/webserver/src/test/java/io/helidon/reactive/webserver/TestNettyRejectRequest.java index 3c31eb8dbda..a5f09f4b86d 100644 --- a/reactive/webserver/webserver/src/test/java/io/helidon/reactive/webserver/TestNettyRejectRequest.java +++ b/reactive/webserver/webserver/src/test/java/io/helidon/reactive/webserver/TestNettyRejectRequest.java @@ -77,6 +77,6 @@ void testBadHeader() throws Exception { assertThat(headers, hasHeader(Http.Header.CONTENT_LENGTH)); assertThat(status, is(Http.Status.BAD_REQUEST_400)); - assertThat(entity, containsString("prohibited characters")); + assertThat(entity, containsString("invalid character")); } }