Closed stephanlascar closed 10 years ago
Note that XEP-0029 was retracted, and that RFC 6122 is what you want to reference.
The issue is that ADMIN@orange.com is actually the same JID as admin@orange.com.
There is a required normalization process defined in RFC 6122 that makes it possible to perform consistent comparisons between JIDs, particularly ones using Unicode characters that can be created multiple ways.
Sleek now provides the normalized version of the JID so that you can reliably compare JIDs at will without worrying about equivalent JID "spellings."
Thanks for your help !
Hi,
Between 1.0 and 1.1.11, JID seems to be lowered case.
If I a receive like:
<presence to="someone@domain.com" from="James@domain.com"></presence>
, dumpingpresence['from']
ofsleekxmpp.stanza.presence.Presence
givesJames@domain.com
in version 1.0 whereas in version 1.1.11, it givesjames@domain.com
.According to the XEP-0029 (http://xmpp.org/extensions/xep-0029.html), JIDs node allows uppercase characters.
Sleek should not lowercase node from JIDs.
The following test fails with 1.1.11: