8381771: Add a check for DNS label not to end with a hyphen#30628
8381771: Add a check for DNS label not to end with a hyphen#30628artur-oracle wants to merge 2 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back abarashev! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
@artur-oracle The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
myankelev
left a comment
There was a problem hiding this comment.
This looks good to me.
However, I think testng tests will need to be changed to junit. Do you want to do it as a part of this ticket or I can create a bug and do it after this is merged. I don't mind either way.
What do you prefer?
Hi @myankelev! Why would we want to change the test to use junit? |
We just tend to prefer junit and convert testng to it when we have a chance. This is the bug JDK-8307843. I have created JDK-8381901, I will work on it after this PR is integrated. |
RFC 952 specifies that an LDH (Letter-Digit-Hyphen) label may only end with a letter or digit. We should remove hyphens from the set of permissible terminal characters in a label.
Also see:
https://www.icann.org/en/announcements/details/comment-concerning-trailing-hyphen-domain-names-7-1-2000-en
Also adding size checks while we touch this file.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/30628/head:pull/30628$ git checkout pull/30628Update a local copy of the PR:
$ git checkout pull/30628$ git pull https://git.openjdk.org/jdk.git pull/30628/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 30628View PR using the GUI difftool:
$ git pr show -t 30628Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/30628.diff
Using Webrev
Link to Webrev Comment