JDK-8339470 : [17u] More defensive fix for 8163921
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 11.0.24,17.0.12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-09-03
  • Updated: 2025-02-15
  • Resolved: 2024-09-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17
11.0.26-oracleFixed 17.0.14-oracleFixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
"JDK-8163921: HttpURLConnection default Accept header is malformed according to HTTP/1.1 RFC" wants to fix syntax errors the header specification. But it also changes the headers accepted.  This seems to be a problem for some installations, see JDK-8337684. 

While JDK-8337684 proposes to revert JDK-8163921 from 17 introducing the wrong syntax again, this change just fixes the syntax errors.  This is probably better for an established release as 17 than the implementation of 8163921.

This was proposed by Daniel Jelinski, see also his first approach to fix 8163921: https://github.com/openjdk/jdk/pull/7181/commits/be017d19303b3f0989c7ae92ceda5c90ea4583ba
Comments
Changeset: 6261dd7e Branch: master Author: Goetz Lindenmaier <goetz@openjdk.org> Date: 2024-09-10 12:12:07 +0000 URL: https://git.openjdk.org/jdk17u/commit/6261dd7e3827ecd65c61a3d71f4234c88f08fccd
30-10-2024

[jdk11u-fix-request] Approval Request from Dan Lutker Low risk backport to fix a regression. The updated test coverage should be sufficient and Oracle will be including this fix in upcoming 11.0.26 release as well.
03-10-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk11u-dev/pull/2950 Date: 2024-10-03 17:50:45 +0000
03-10-2024

Changeset: 6261dd7e Branch: master Author: Goetz Lindenmaier <goetz@openjdk.org> Date: 2024-09-10 12:12:07 +0000 URL: https://git.openjdk.org/jdk17u-dev/commit/6261dd7e3827ecd65c61a3d71f4234c88f08fccd
10-09-2024

Fix request [17u] I would like to partially revert 8163921 because 8337684 reports a problem with this. While 8163921 is described as a fix, it also implements a change of behavior, which probably should not have been backported as-is. So this change now tries to only bring the fix to 17. As this is a (slightly) new change, I propose to give it time to be tested and thus target the January release. Test and SAP nightly tests passed.
05-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/2843 Date: 2024-09-03 10:19:06 +0000
03-09-2024