Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8065422: Trailing dot in hostname causes TLS handshake to fail with SNI disabled #1574

Conversation

wkia
Copy link

@wkia wkia commented Dec 9, 2022

Clean backport

JDK11 has the same issue with processing host names for SNI. It'd be good to keep JDK11 up to date with the upstream. No risks.

Please note that new test added by the change fails for now because of the certs are expired in March, 2022. To fix this, there are additional JDK fixes being backported as dependant PRs


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8065422: Trailing dot in hostname causes TLS handshake to fail with SNI disabled

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1574

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

Using diff file

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

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 9, 2022

👋 Welcome back rmarchenko! 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.

@openjdk openjdk bot changed the title Backport a95ee5ada230a0177517efd3a417f319066169dd 8065422: Trailing dot in hostname causes TLS handshake to fail with SNI disabled Dec 9, 2022
@openjdk
Copy link

openjdk bot commented Dec 9, 2022

This backport pull request has now been updated with issue from the original commit.

@openjdk
Copy link

openjdk bot commented Dec 9, 2022

@wkia This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

8065422: Trailing dot in hostname causes TLS handshake to fail with SNI disabled

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 14 new commits pushed to the master branch:

  • 1acc508: 8274939: Incorrect size of the pixel storage is used by the robot on macOS
  • 3990eb2: 8256110: Create implementation for NSAccessibilityStepper protocol
  • 674218b: 8287906: Rewrite of GitHub Actions (GHA) sanity tests
  • 8a4915e: 8296904: Improve handling of macos xcode toolchain
  • 5f4b38a: 8290899: java/lang/String/StringRepeat.java test requests too much heap on windows x86
  • 3f66b16: 8294580: frame::interpreter_frame_print_on() crashes if free BasicObjectLock exists in frame
  • 01f5a19: 8287011: Improve container information
  • 12eca2f: 8256126: Create implementation for NSAccessibilityImage protocol peer
  • b3c7b28: 8298459: Fix msys2 linking and handling out of tree build directory for source zip creation
  • 604dd4d: 8179317: [TESTBUG] rewrite runtime shell tests in java
  • ... and 4 more: https://git.openjdk.org/jdk11u-dev/compare/89f9f91d3a69b473a61d98fab859b751dd6755c2...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Dec 9, 2022
@mlbridge
Copy link

mlbridge bot commented Dec 9, 2022

Webrevs

@GoeLin
Copy link
Member

GoeLin commented Dec 12, 2022

Hi @wkla
please give reason why you backport and assess the risk in the JBS fix request comment.

I remove the fix-request tag in the meantime. Feel free to add again after giving the reason.

@wkia
Copy link
Author

wkia commented Dec 19, 2022

Hi @GoeLin
I've updated both the PR and the bug with the reason description and risk assessment.

@wkia
Copy link
Author

wkia commented Dec 20, 2022

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Dec 20, 2022
@openjdk
Copy link

openjdk bot commented Dec 20, 2022

@wkia
Your change (at version 7ba456d) is now ready to be sponsored by a Committer.

@yan-too
Copy link

yan-too commented Dec 20, 2022

/sponsor

@openjdk
Copy link

openjdk bot commented Dec 20, 2022

Going to push as commit 31b5184.
Since your change was applied there have been 16 commits pushed to the master branch:

  • 2a5ae36: 8289695: [TESTBUG] TestMemoryAwareness.java fails on cgroups v2 and crun
  • dba3022: 8238936: The crash in XRobotPeer when the custom GraphicsDevice is used
  • 1acc508: 8274939: Incorrect size of the pixel storage is used by the robot on macOS
  • 3990eb2: 8256110: Create implementation for NSAccessibilityStepper protocol
  • 674218b: 8287906: Rewrite of GitHub Actions (GHA) sanity tests
  • 8a4915e: 8296904: Improve handling of macos xcode toolchain
  • 5f4b38a: 8290899: java/lang/String/StringRepeat.java test requests too much heap on windows x86
  • 3f66b16: 8294580: frame::interpreter_frame_print_on() crashes if free BasicObjectLock exists in frame
  • 01f5a19: 8287011: Improve container information
  • 12eca2f: 8256126: Create implementation for NSAccessibilityImage protocol peer
  • ... and 6 more: https://git.openjdk.org/jdk11u-dev/compare/89f9f91d3a69b473a61d98fab859b751dd6755c2...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Dec 20, 2022
@openjdk openjdk bot closed this Dec 20, 2022
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Dec 20, 2022
@openjdk
Copy link

openjdk bot commented Dec 20, 2022

@yan-too @wkia Pushed as commit 31b5184.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@wkia wkia deleted the backport-a95ee5ada230a0177517efd3a417f319066169dd branch December 20, 2022 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport clean integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants