Cortex Java Client SDK Release Notes
3.0.1
Released: May 2023
Release Highlights
Added support for format=nolinks query parameter
Clients can now specify the format=nolinks
parameter when making GET
requests to Cortex. See Cortex Format Query Parameter for more information. The query parameter can be added using the @Format
annotation as in the following example:
@Zoom(@Path("order"))
@FollowLocation
@Format({FormatOptionEnum.NOLINKS})
public class CartOrder {}
3.0.0
Released: September 2022
Release Highlights
Removed OSGi support
The Cortex Java Client library was switched from a bundle to a JAR and all OSGi and Sling dependencies were removed. This makes the JAR smaller and easier to use in non-OSGi scenarios.
This version is not intended for use in Adobe Experience Manager.
Improved Cortex response handling
When CortexClient
receives a response, it now expects certain response types based on the HTTP status returned.
- If 2XX response received, expects the response to be a JSON document of the expected type.
- If 4XX response received, expects the response to be a structured error message or a collection of structured error messages in the "messages" field (the previous version did not handle both of these cases properly).
- If 5XX response received, expects the response to be a plain text string.
Third-party library upgrades
Several third party libraries were upgraded to address reported security vulnerabilities in these dependencies.
Library | Old Version | New Version |
---|---|---|
httpclient | 4.5.12 | 4.5.13 |
jackson | 2.11.0 | 2.13.3 |
jersey | 2.17 | 2.36 |
slf4j | 1.7.8 | 1.7.32 |
commons-lang3 | 3.0.1 | 3.10 |
guava | 24.1.1-jre | 31.1-jre |