From 046c9711bb9e7e109851dc20145d1f64f4ccdfcc Mon Sep 17 00:00:00 2001 From: Christopher Grote Date: Fri, 12 Feb 2021 12:22:57 +0000 Subject: [PATCH 1/2] Allow the include_relationships parameter to be optional, as it appears it may cause issues on some versions of WKC Signed-off-by: Christopher Grote --- .../com/ibm/watson/data/client/api/CategoriesApiV3.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java/src/main/java/com/ibm/watson/data/client/api/CategoriesApiV3.java b/java/src/main/java/com/ibm/watson/data/client/api/CategoriesApiV3.java index 4c71696..851282d 100644 --- a/java/src/main/java/com/ibm/watson/data/client/api/CategoriesApiV3.java +++ b/java/src/main/java/com/ibm/watson/data/client/api/CategoriesApiV3.java @@ -400,7 +400,7 @@ public Mono get(@NonNull String guid, */ public Mono get(@NonNull String guid, String runAsTenant, - boolean includeRelationships) throws RestClientException { + Boolean includeRelationships) throws RestClientException { // create path and map variables final Map pathParams = new HashMap<>(); @@ -412,7 +412,9 @@ public Mono get(@NonNull String guid, final MultiValueMap cookieParams = new LinkedMultiValueMap<>(); final MultiValueMap formParams = new LinkedMultiValueMap<>(); - queryParams.putAll(apiClient.parameterToMultiValueMap(null, "include_relationships", includeRelationships)); + if (includeRelationships != null) { + queryParams.putAll(apiClient.parameterToMultiValueMap(null, "include_relationships", includeRelationships)); + } if (runAsTenant != null) headerParams.add("Run-As-Tenant", apiClient.parameterToString(runAsTenant)); From 80cf95b713ada2813bbb0740065fe4ec2fa1e435 Mon Sep 17 00:00:00 2001 From: Christopher Grote Date: Fri, 12 Feb 2021 12:24:11 +0000 Subject: [PATCH 2/2] Bump netty-handler from 4.1.58.Final to 4.1.59.Final Signed-off-by: Christopher Grote --- java/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/pom.xml b/java/pom.xml index 1a3e827..88bdc17 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -57,7 +57,7 @@ 3.4.2 1.0.3 0.7.15.RELEASE - 4.1.58.Final + 4.1.59.Final 7.3.0 5.11.2