From 099192409edf5c3a8af4f222cd14aa5259da11f7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 15 Jan 2026 13:58:01 +0000 Subject: [PATCH 1/3] build(deps): bump com.ibm.cloud:sdk-core from 9.24.3 to 9.25.0 Bumps [com.ibm.cloud:sdk-core](https://github.com/IBM/java-sdk-core) from 9.24.3 to 9.25.0. - [Release notes](https://github.com/IBM/java-sdk-core/releases) - [Changelog](https://github.com/IBM/java-sdk-core/blob/main/CHANGELOG.md) - [Commits](https://github.com/IBM/java-sdk-core/compare/9.24.3...9.25.0) --- updated-dependencies: - dependency-name: com.ibm.cloud:sdk-core dependency-version: 9.25.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a927812a8..869aef5d3 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ pom - 9.24.3 + 9.25.0 cloudant-java-sdk From 0104346eb3320115a344c984f1c5520728cb575f Mon Sep 17 00:00:00 2001 From: Rich Ellis Date: Thu, 15 Jan 2026 14:31:28 +0000 Subject: [PATCH 2/3] build(deps): bump okhttp3-version from 4.12.0 to 5.3.2 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 869aef5d3..edf8307fd 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ cloudant-java-sdk 7.7.1 - 4.12.0 + 5.3.2 3.5.4 0.8.14 3.1.4 From 6fedeb6a05d1a0f24296139c9af18b13e1bf0d89 Mon Sep 17 00:00:00 2001 From: Rich Ellis Date: Thu, 15 Jan 2026 14:55:03 +0000 Subject: [PATCH 3/3] fix: ErrorInterceptor empty body check for okhttp 5 --- .../ibm/cloud/cloudant/internal/ErrorTransformInterceptor.java | 2 +- .../cloud/cloudant/internal/ErrorTransformInterceptorTest.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/common/src/main/java/com/ibm/cloud/cloudant/internal/ErrorTransformInterceptor.java b/modules/common/src/main/java/com/ibm/cloud/cloudant/internal/ErrorTransformInterceptor.java index 2ec87a3bf..49ebe2dce 100644 --- a/modules/common/src/main/java/com/ibm/cloud/cloudant/internal/ErrorTransformInterceptor.java +++ b/modules/common/src/main/java/com/ibm/cloud/cloudant/internal/ErrorTransformInterceptor.java @@ -32,7 +32,7 @@ public Response intercept(Chain chain) throws IOException { // Don't modify the request, but get the response Response response = chain.proceed(chain.request()); if (!response.isSuccessful() // skip successful responses - && response.body() != null // skip cases with no body + && response.body() != null && !ResponseBody.EMPTY.equals(response.body()) // skip cases with no body && response.body().contentType() != null // skip cases with no content type && "application".equals(response.body().contentType().type()) && "json".equals(response.body().contentType().subtype()) // we only want to work with application/json diff --git a/modules/common/src/test/java/com/ibm/cloud/cloudant/internal/ErrorTransformInterceptorTest.java b/modules/common/src/test/java/com/ibm/cloud/cloudant/internal/ErrorTransformInterceptorTest.java index 0bfbd1ad8..f20023570 100644 --- a/modules/common/src/test/java/com/ibm/cloud/cloudant/internal/ErrorTransformInterceptorTest.java +++ b/modules/common/src/test/java/com/ibm/cloud/cloudant/internal/ErrorTransformInterceptorTest.java @@ -37,7 +37,6 @@ import com.google.gson.JsonObject; import com.ibm.cloud.sdk.core.security.NoAuthAuthenticator; import com.ibm.cloud.sdk.core.util.GsonSingleton; -import static org.junit.Assert.assertNull; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertFalse; import static org.testng.Assert.assertTrue; @@ -340,7 +339,7 @@ void runTest(Interceptor interceptor) throws IOException { } else { // If we aren't asserting a specific part of augment check the body is unchanged if ("HEAD" == r.request().method()) { - assertNull(r.body()); + assertEquals(r.body(), ResponseBody.EMPTY); } else { assertEquals(r.body().string(), responseBody); }