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

test single label hostnames #685

Merged
merged 5 commits into from
Sep 15, 2023

Conversation

swaeberle
Copy link
Contributor

RFC1123 allows single label hostnames with hyphens in between and starting with a digit.

RFC1123 allows single label hostnames with hyphens in between and
starting with a digit.

Signed-off-by: Stephan Wurm <[email protected]>
@swaeberle swaeberle requested a review from a team as a code owner September 14, 2023 15:19
Both, RFC1034 and RFC1123, allow hostnames with digits in between and at
the end.

Signed-off-by: Stephan Wurm <[email protected]>
Drafts 4, 6, and 7 are referencing RFC1034, which, in contrast to
RFC1123, does not allow a starting digit in hostnames.

Signed-off-by: Stephan Wurm <[email protected]>
@swaeberle swaeberle changed the title test valid single label hostnames test single label hostnames Sep 15, 2023
Drafts 4, 6, and 7 are based on RFC1034, not allowing a leading digit
in hostnames. This was extended only later by newer drafts referencing
RFC1123.
Removed the checks for leading digit in hostnames from the older drafts,
as strict checking with the old format could break existing setups.

Signed-off-by: Stephan Wurm <[email protected]>
@Julian
Copy link
Member

Julian commented Sep 15, 2023

Great, thanks for the PR!

@Julian Julian merged commit ab3924a into json-schema-org:main Sep 15, 2023
2 checks passed
@Julian
Copy link
Member

Julian commented Sep 15, 2023

Sorry, I meant to comment this before as well but it seems I forgot to (so we can move this to another issue if need be) -- we also need to address adding tests to the idn-hostname format, which also allows these!

@Julian
Copy link
Member

Julian commented Sep 15, 2023

@swaeberle #686 if you're interested in helping there too.

Copy link
Member

@ChALkeR ChALkeR left a comment

Choose a reason for hiding this comment

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

Post-merge tACK

@swaeberle swaeberle deleted the check-single-label-hostnames branch September 18, 2023 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants