[Standards] Punycode in stream 'to' attr
zash at zash.se
Thu Dec 29 13:07:36 UTC 2016
An issue was filed against Prosody¹ for not converting punycode in
stream headers to Unicode. Now I'm wondering if this is really
something the server is expected to do.
RFC7622 § 3.2.1.² states as following:
> An entity that prepares a string for inclusion in an XMPP domainpart
> slot MUST ensure that the string consists only of Unicode code points
> that are allowed in NR-LDH labels or U-labels as defined in RFC5890.
However, the next section states that:
> An entity that performs enforcement in XMPP domainpart slots MUST
> prepare a string as described in [previous section]
This could possibly be interpreted as that the server should perform
the toUnicode step if the client (or component in this case) does not.
So, I'd like to know what the consensus interpretation of this is.
Kim "Zash" Alvefur
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: Digital signature
More information about the Standards