From 11243f0b7ebfc54469384a8a7cbef295753beba0 Mon Sep 17 00:00:00 2001 From: rodrigojara-cko Date: Fri, 20 Nov 2026 15:25:36 +0100 Subject: [PATCH] Release 8.10.0 - security hardening This release brings security hardening of request building, the OAuth client and request logging, and fixes responses that repeat a header. Custom base URIs and the OAuth authorization URI are now validated when the SDK is built, so check them before upgrading if you set them. No public member is removed; one constructor is added. **Added** * `CheckoutAuthorizationException(String, Throwable)` (#711). **Changed** * Security hardening (#707, #709, #711). * Path values that cannot be sent as one path segment (null, empty, `.`, `..`, or containing "/" or "\") raise `CheckoutArgumentException` before the request is sent. For `CustomersClient#get` with an email that contains "/" or "\", pass the customer ID instead (#707, #709). * Custom base URIs (`CustomEnvironment`, or a custom `UriStrategy` given to `ApiClientImpl`) are validated when the SDK is built, every setting included. An invalid one fails `build()` with a `CheckoutArgumentException` that names the setting. Use absolute `http` or `https` URIs with a host, ending with "/" when they have a path, as described in the README Custom Environment section (#709). * The OAuth authorization URI must be an absolute `https` URI with an ASCII host written without percent-encoding, no user information and an optional port from 1 to 65535; `http` is accepted only for `localhost`, `127.0.0.0/8` and `[::1]`. Any other URI throws `CheckoutArgumentException` when the SDK is built (#711). * OAuth token request failures and token responses that cannot be used raise `CheckoutAuthorizationException`, a subclass of `CheckoutException`. Catch `CheckoutException` or `CheckoutAuthorizationException` (#711). * The request and response log lines hold less information (#711). **Fixed** * A response that repeats a header (for example two `Set-Cookie` headers) is no longer reported as a 400; the first value is kept (#713). * With a custom base URI that has a path, iDEAL requests stay under that path like every other request (#707). --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 64539ce7..65b015e5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group=com.checkout -version=8.9.0 +version=8.10.0 project_name=Checkout SDK Java project_description=Checkout SDK for Java https://checkout.com