Skip to content

fix: use the Apache HTTP client connector to support PATCH#13

Merged
JuroUhlar merged 1 commit into
mainfrom
fix/INTER-1845-use-apache-http-client
Mar 3, 2026
Merged

fix: use the Apache HTTP client connector to support PATCH#13
JuroUhlar merged 1 commit into
mainfrom
fix/INTER-1845-use-apache-http-client

Conversation

@mcnulty-fp

@mcnulty-fp mcnulty-fp commented Feb 27, 2026

Copy link
Copy Markdown
Contributor
  • Update the ApiClient default ClientConfig to use the ApacheConnectorProvider. This fixes an issue where it is no longer possible to workaround the lack of PATCH support in the native JDK HttpsURLConnection on later JDKs, without requiring JVM level config changes.
  • Re-add the README example for configuring an outbound proxy.

I originally discovered this issue in my personal sandbox and confirmed this fixes the issue.

This is a known issue and switching the connector is the expected way to address the issue. The dependencies for the sdk module already included the Apache connector so this seems like the safest way to make this change.

- Update the `ApiClient` default `ClientConfig` to
  use the `ApacheConnectorProvider`. This fixes an issue
  where it is no longer possible to workaround the lack of
  `PATCH` support in the native JDK `HttpsURLConnection` on
  later JDKs.
- Re-add the README example for configuring an outbound proxy.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Jersey 3-based SDK client generation to use Jersey’s Apache HTTP connector by default, addressing PATCH support issues on newer JDKs, and restores documentation for outbound proxy configuration.

Changes:

  • Switch default Jersey ClientConfig connector from HttpUrlConnectorProvider workaround to ApacheConnectorProvider (template + generated SDK).
  • Add outbound HTTP proxy configuration example back into generated README content (template + repo README).
  • Add/update Changesets entries to reflect the connector change.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
template/libraries/jersey3/ApiClient.mustache Changes generated client default connector to Apache for PATCH support.
template/README.mustache Adds jersey3 outbound proxy configuration example to generated README.
sdk/src/main/java/com/fingerprint/v4/sdk/ApiClient.java Applies the connector change in the checked-in generated SDK source.
README.md Adds outbound proxy configuration example to the published repository README.
.changeset/weak-eagles-deliver.md Documents the connector default change in an existing major changeset.
.changeset/gentle-dots-admire.md Adds a new patch changeset for the same connector default change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .changeset/gentle-dots-admire.md
Comment thread .changeset/weak-eagles-deliver.md
Comment thread sdk/src/main/java/com/fingerprint/v4/sdk/ApiClient.java

@JuroUhlar JuroUhlar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, works well for me, thanks for the fix!

@JuroUhlar

Copy link
Copy Markdown
Contributor

@ilfa @erayaydin Needs codeowner approval though

@JuroUhlar
JuroUhlar merged commit 7dbf335 into main Mar 3, 2026
23 of 26 checks passed
@JuroUhlar
JuroUhlar deleted the fix/INTER-1845-use-apache-http-client branch March 3, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants