JID case sensitivity

Alex Vandiver alexmv at bestpractical.com
Fri Mar 27 00:03:42 UTC 2009


On Thu, 2009-03-26 at 16:25 -0700, Martin Atkins wrote:
> Can you reference the specific section of the spec you're referring to?

http://xmpp.org/rfcs/rfc3920.html#rfc.section.3.3

...states that:

A node identifier MUST be formatted such that the Nodeprep
profile of [STRINGPREP] can be applied without failing. Before
comparing two node identifiers, a server MUST (and a client
SHOULD) first apply the Nodeprep profile to each identifier.

http://xmpp.org/rfcs/rfc3920.html#nodeprep

..defines the Nodeprep Stringprep type, which includes Table b.2
in its mapping table.  Table B.2 defines case folding for Unicode
in the KC normalization.

Domain names apply Nameprep, which also specifies Table B.2 for
mappings, and are hence case-folded.  Note that resources
identifiers (which use Resourceprep) do _not_ apply Table B.2,
and are thus case sensitive.
 - Alex



More information about the Djabberd mailing list