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 #205

Conversation

wkia
Copy link

@wkia wkia commented Dec 9, 2022

Almost clean backport.

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

There were 2 changes with test files paths:

  • Original test/jdk/javax/net/ssl/ServerName/EndingDotHostname.java added and moved to jdk/test/javax/net/ssl/ServerName/EndingDotHostname.java.
  • Original test/jdk/javax/net/ssl/templates/SSLExampleCert.java added and moved to jdk/test/javax/net/ssl/templates/SSLExampleCert.java.

And the original changes use JDK17 strings in SSLExampleCert.java, so it was adapted for JDK8 withthe additional commit as it was done for JDK11 backport.

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

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 205

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/205.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 openjdk bot added backport rfr Pull request is ready for review labels Dec 9, 2022
@mlbridge
Copy link

mlbridge bot commented Dec 9, 2022

Webrevs

@openjdk
Copy link

openjdk bot commented Dec 12, 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

Reviewed-by: yan, andrew

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 63 new commits pushed to the master branch:

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. Possible candidates are the reviewers of this PR (@yan-too, @gnu-andrew) but any other Committer may sponsor as well.

➡️ 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 the ready Pull request is ready to be integrated label Dec 12, 2022
Copy link
Member

@gnu-andrew gnu-andrew left a comment

Choose a reason for hiding this comment

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

Clean backport, simple bug fix.

@gnu-andrew
Copy link
Member

This has a jdk8u-fix-yes approval already. Please run the integrate command and then one of us can sponsor this to get it in.

@gnu-andrew
Copy link
Member

/clean

@openjdk openjdk bot added the clean label Jan 4, 2023
@openjdk
Copy link

openjdk bot commented Jan 4, 2023

@gnu-andrew This backport pull request is now marked as clean

@wkia wkia requested review from yan-too and gnu-andrew and removed request for yan-too and gnu-andrew January 18, 2023 07:29
@wkia
Copy link
Author

wkia commented Jan 18, 2023

The original changes use JDK17 strings in SSLExampleCert.java, so it was adapted for JDK8 withthe additional commit as it was done for JDK11 backport.

I will update the related PRs accordingly.

@wkia wkia requested review from yan-too and gnu-andrew and removed request for gnu-andrew and yan-too January 18, 2023 07:31
@phohensee
Copy link
Member

Pre-submit test failures look like an infrastructure issue. @wkia, the backport has been approved, so if you add a "/integrate" comment, I or another committer can sponsor it.

@wkia
Copy link
Author

wkia commented Jan 19, 2023

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jan 19, 2023
@openjdk
Copy link

openjdk bot commented Jan 19, 2023

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

@phohensee
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Jan 19, 2023

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

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jan 19, 2023
@openjdk openjdk bot closed this Jan 19, 2023
@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 Jan 19, 2023
@openjdk
Copy link

openjdk bot commented Jan 19, 2023

@phohensee @wkia Pushed as commit 5525464.

💡 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 January 20, 2023 12:11
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
4 participants