Skip to content

Add hostname conformance case for a 253-character name with a trailing dot - #513

Merged
rodaine merged 1 commit into
bufbuild:mainfrom
LordAizen1:add-hostname-trailing-dot-conformance-case
Jul 27, 2026
Merged

Add hostname conformance case for a 253-character name with a trailing dot#513
rodaine merged 1 commit into
bufbuild:mainfrom
LordAizen1:add-hostname-trailing-dot-conformance-case

Conversation

@LordAizen1

Copy link
Copy Markdown
Contributor

This adds one conformance case, valid/name_253_characters_plus_trailing_dot, in cases_is_hostname.go, right after the existing valid/name_253_characters case. It uses that same 253-character value with a trailing dot appended (254 bytes total) and expects success.

The hostname docs in validate.proto say the name can be 253 characters at most, excluding the optional trailing dot, so a 253-character name followed by a dot should be valid. There was no case for that edge, and it turns out the runtimes reject it because the length check counts the trailing dot. This was confirmed in #512.

As discussed there, the case will fail against the current runtimes until they strip the trailing dot before the length check. Those fixes come separately, so this PR is just the conformance case.

Refs #512

…g dot

The hostname docs say the name can be 253 characters at most, excluding the
optional trailing dot, so a 253-character name followed by a dot is valid.
There was no case covering that edge. Adds valid/name_253_characters_plus_
trailing_dot next to the existing valid/name_253_characters case, using the
same value with a trailing dot and expecting success.

Refs bufbuild#512.
@CLAassistant

CLAassistant commented Jul 24, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@rodaine
rodaine merged commit 9605613 into bufbuild:main Jul 27, 2026
8 checks passed
@rodaine

rodaine commented Jul 27, 2026

Copy link
Copy Markdown
Member

Thanks for the patch! If you'd like to also contribute any implementation patches, that would also be appreciated 😁

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