From e6f02b3ce06f2b9c8f693dead38ab1eaa606d8d9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 18 Nov 2023 22:10:26 +0000 Subject: [PATCH 1/2] fix(deps): update dependency com.fasterxml.jackson.core:jackson-databind to v2.16.0 --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index f96bb1a3bce..fefb2371bcb 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -60,7 +60,7 @@ wiremock = "2.33.2" managed-groovy = "4.0.14" managed-jakarta-annotation-api = "2.1.1" managed-jackson = "2.15.3" -managed-jackson-databind = "2.15.3" +managed-jackson-databind = "2.16.0" managed-kotlin = "1.9.20" managed-kotlin-coroutines = "1.7.3" managed-methvin-directory-watcher = "0.18.0" From 2cc2cd127ddd5b65f75c3fe4bd4f5552b8e0b8b1 Mon Sep 17 00:00:00 2001 From: Dean Wette Date: Mon, 27 Nov 2023 15:16:06 -0600 Subject: [PATCH 2/2] Changed error msgs in jackson-databind 2.15.3 -> 2.16.0. --- .../server/netty/binding/DefaultJsonErrorHandlingSpec.groovy | 4 ++-- .../http/server/netty/binding/JsonBodyBindingSpec.groovy | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/http-server-netty/src/test/groovy/io/micronaut/http/server/netty/binding/DefaultJsonErrorHandlingSpec.groovy b/http-server-netty/src/test/groovy/io/micronaut/http/server/netty/binding/DefaultJsonErrorHandlingSpec.groovy index 968cfa0f877..73405994d56 100644 --- a/http-server-netty/src/test/groovy/io/micronaut/http/server/netty/binding/DefaultJsonErrorHandlingSpec.groovy +++ b/http-server-netty/src/test/groovy/io/micronaut/http/server/netty/binding/DefaultJsonErrorHandlingSpec.groovy @@ -22,8 +22,8 @@ class DefaultJsonErrorHandlingSpec extends AbstractMicronautSpec { then: HttpClientResponseException e = thrown() - e.response.getBody(Map).get()._embedded.errors[0].message == """Invalid JSON: Unexpected end-of-input: expected close marker for Object (start marker at [Source: (io.netty.buffer.ByteBufInputStream); line: 1, column: 1]) - at [Source: (io.netty.buffer.ByteBufInputStream); line: 1, column: 21]""" + e.response.getBody(Map).get()._embedded.errors[0].message == """Invalid JSON: Unexpected end-of-input: expected close marker for Object (start marker at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 1]) + at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 21]""" e.response.status == HttpStatus.BAD_REQUEST when: diff --git a/http-server-netty/src/test/groovy/io/micronaut/http/server/netty/binding/JsonBodyBindingSpec.groovy b/http-server-netty/src/test/groovy/io/micronaut/http/server/netty/binding/JsonBodyBindingSpec.groovy index 76675372cc6..81411c464d0 100644 --- a/http-server-netty/src/test/groovy/io/micronaut/http/server/netty/binding/JsonBodyBindingSpec.groovy +++ b/http-server-netty/src/test/groovy/io/micronaut/http/server/netty/binding/JsonBodyBindingSpec.groovy @@ -73,7 +73,7 @@ class JsonBodyBindingSpec extends AbstractMicronautSpec { then: HttpClientResponseException e = thrown() e.message == """Invalid JSON: Unrecognized token 'The': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false') - at [Source: (io.netty.buffer.ByteBufInputStream); line: 1, column: 14]""" + at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 14]""" e.response.status == HttpStatus.BAD_REQUEST when: