Skip to content

8388339: [17u] Replacing non-ascii characters in HttpServerAdapters.java - #4574

Open
adamfarley wants to merge 1 commit into
openjdk:masterfrom
adamfarley:8388339_replace_non_ascii_characters_in_HttpServersAdapter
Open

8388339: [17u] Replacing non-ascii characters in HttpServerAdapters.java#4574
adamfarley wants to merge 1 commit into
openjdk:masterfrom
adamfarley:8388339_replace_non_ascii_characters_in_HttpServersAdapter

Conversation

@adamfarley

@adamfarley adamfarley commented Jul 16, 2026

Copy link
Copy Markdown

On some Linux distros like Ubunto and Sles, the default environment variables can lead to the non-ascii characters in this string causing any tests using this class to fail due to the unmappable characters.



Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8388339 needs maintainer approval

Integration blocker

 ⚠️ Title mismatch between PR and JBS for issue JDK-8388339

Issue

  • JDK-8388339: 8388339: [17u] Replacing non-ascii characters in HttpServerAdapters.java (Bug - P4 - Approved) ⚠️ Title mismatch between PR and JBS.

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/4574/head:pull/4574
$ git checkout pull/4574

Update a local copy of the PR:
$ git checkout pull/4574
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/4574/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 4574

View PR using the GUI difftool:
$ git pr show -t 4574

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/4574.diff

Using Webrev

Link to Webrev Comment

On some Linux distros like Ubunto and Sles, the default environment
variables can lead to the non-ascii characters in this string
causing any tests using this class to fail due to the unmappable
characters.

Signed-off-by: Adam Farley <adfarley@ibm.com>
@bridgekeeper

bridgekeeper Bot commented Jul 16, 2026

Copy link
Copy Markdown

👋 Welcome back afarley! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@adamfarley

Copy link
Copy Markdown
Author

Note: this is only being merged into JDK17 because the letters with diacritics causing this issue are only present in JDK17+, and JDK25 uses UTF-8 encoding (which permits the use of these characters).

@openjdk

openjdk Bot commented Jul 16, 2026

Copy link
Copy Markdown

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@adamfarley

Copy link
Copy Markdown
Author

/approval 8388339 request Request to amend a string to only include ascii characters, as some Linux distros can see massive http test failures due to unmappable characters if the system is using default environment variables.

@openjdk openjdk Bot added the rfr Pull request is ready for review label Jul 16, 2026
@openjdk

openjdk Bot commented Jul 16, 2026

Copy link
Copy Markdown

@adamfarley
8388339: The approval request has been created successfully.

@openjdk openjdk Bot added the approval Requires approval; will be removed when approval is received label Jul 16, 2026
@mlbridge

mlbridge Bot commented Jul 16, 2026

Copy link
Copy Markdown

Webrevs

@GoeLin

GoeLin commented Jul 22, 2026

Copy link
Copy Markdown
Member

Hi @adamfarley
can you please prefix the Bug title with [17u]? I think you need to do so both in JBS and the PR.
Thanks!

@adamfarley adamfarley changed the title 8388339: Replacing non-ascii characters in HttpServerAdapters.java 8388339: [17u] Replacing non-ascii characters in HttpServerAdapters.java Jul 22, 2026
@openjdk openjdk Bot removed the approval Requires approval; will be removed when approval is received label Jul 23, 2026
final String responseBody;
public HttpHeadOrGetHandler() {
this("pâté de tête persillé");
this("pate de tete persille");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would suggest replacing the non-ASCII characters by their unicode escape instead. IIRC the use of non-ASCII characters in the response body was intentional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

3 participants