RFR: 8263442: Potential bug in jdk.internal.net.http.common.Utils.CONTEXT_RESTRICTED

Michael McMahon michaelm at openjdk.java.net
Fri Mar 12 21:10:20 UTC 2021


Hi,

The fix for the reported bug in Utils.CONTEXT_RESTRICTED caused a couple of regression failures, which turned out to be another bug exposed by this fix where HTTP/1.1 CONNECT requests with authentication were filtering out proxy authentication headers wrongly. This was because the HttpRequestImpl created for the repeated CONNECT was putting the system headers in the user headers area of the HttpRequestImpl. The fix for that is to supply the user and system headers direct to the place where the new HttpRequestImpl is created.

Thanks
Michael

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

Commit messages:
 - Merge branch 'master' into 8263442
 - uncovered an existing bug in first commit. Fixed here
 - Fix for 8263442

Changes: https://git.openjdk.java.net/jdk/pull/2977/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2977&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8263442
  Stats: 112 lines in 6 files changed: 96 ins; 4 del; 12 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2977.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2977/head:pull/2977

PR: https://git.openjdk.java.net/jdk/pull/2977


More information about the net-dev mailing list