[jdk21u-dev] RFR: 8326233: Utils#copySSLParameters loses needClientAuth Setting

Satyen Subramaniam ssubramaniam at openjdk.org
Tue Apr 8 18:23:36 UTC 2025


Backporting JDK-8326233: Utils#copySSLParameters loses needClientAuth Setting. When the java.net.HttpClient.Builder is configured with a SSLParameters instance whose needClientAuth is set to true, then it is expected that the HttpClient that's built from such a builder will have its SSLParameters with needClientAuth as true and wantClientAuth as false. This change fixes a bug in the internal implementation of a the HttpClient which leads to the value for needClientAuth was getting reset to false. Adds test for expected behavior. Ran GHA Sanity Checks, local Tier 1 and 2 tests. Patch is clean.

-------------

Commit messages:
 - Backport 36246c975bd62845367fe67274d67bcffcff7c80

Changes: https://git.openjdk.org/jdk21u-dev/pull/1618/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1618&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8326233
  Stats: 38 lines in 2 files changed: 33 ins; 1 del; 4 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/1618.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1618/head:pull/1618

PR: https://git.openjdk.org/jdk21u-dev/pull/1618


More information about the jdk-updates-dev mailing list