swicg / activitypub-webfinger

SocialCG report for using ActivityPub with Webfinger
https://swicg.github.io/activitypub-webfinger/
8 stars 1 forks source link

3.1 Limitiations on usernames and hostnames - syntatic specification of the userpart #23

Closed AaronNGray closed 5 months ago

AaronNGray commented 5 months ago

I cannot find any reference, description, or meaning of the usage of the 0* multiplicity operator in the document or in RFC7565 or RFC 5234.

userpart     = unreserved / sub-delims
               0*( unreserved / pct-encoded / sub-delims )
trwnh commented 5 months ago

The ABNF was taken directly from RFC 7565 Section 7 "IANA Considerations" > "URI Scheme Syntax"

The a*b syntax is "variable repetition" as defined in RFC 5234 Section 3.6: https://www.rfc-editor.org/rfc/rfc5234.html#section-3.6

It means "at least 0". Granted, this is already the default value for a, so I assume the authors of RFC 7565 wanted to be even more explicit for some reason.

AaronNGray commented 5 months ago

Can we specify this in the document as its not immediately obvious.

Also can we add a Regular expression defintion for usernames too please ?

evanp commented 5 months ago

Why does this issue require synchronous discussion by the whole CG?