x/text/secure/precis: UsernameCaseMapped and UsernameCasePreserved should disallow empty usernames #64531
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.21.3 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
Ran
precis.UsernameCaseMapped.String("")
.What did you expect to see?
An error returned as written in RFC 8265:
It seems
DisallowEmpty
option should be added toUsernameCaseMapped
andUsernameCasePreserved
. It is already added toNickname
andOpaqueString
.What did you see instead?
No error returned.
The text was updated successfully, but these errors were encountered: