[Standards] XEP-0392: Consistent Color Generation - Issues using JID

Marcel Waldvogel marcel.waldvogel at uni-konstanz.de
Fri Dec 8 09:00:33 UTC 2017


I came upon one more ambiguity in the "same JID, different hash/color"
domain
First, what I already mentioned, is case: The JID must be mapped to a
consistent case; I would suggest lower.
Second, the hash also depends on the Normalization Form applied. I
would suggest NFC, which is recommended anyway for XML.
It would be great if that could also be specified (or at least
referenced) in the XEP.
-Marcel
On Fri, 2017-11-24 at 14:11 +0100, Marcel Waldvogel wrote:
> Related issue: JIDs are case-preserving, but case-insensitive. So the
> coloring should also be case-insensitive. Therefore, we probably need
> to normalize/downcase/similar the JIDs.
> Does the same apply to Nicks as well?-- 
> Beste Grüße,
> 
> -Marcel Waldvogel
> University of Konstanz
> Distributed Systems Laboratory
> Efficient Secure and Private Collaboration
> On Fri, 2017-11-24 at 09:11 +0100, Jonas Wielicki wrote:
> > On Montag, 20. November 2017 09:09:48 CET Maxime Buquet wrote:
> > > Hi there,
> > > 
> > > A few remarks regarding 0392 after having it implemented in
> > > poezio,
> > > thanks to Jonas.
> > > 
> > > Using JIDs as the source for the hash brings at least an issue to
> > > me in
> > > MUCs. You'll see the same person in different colors depending on
> > > what room
> > > you're looking at.
> > 
> > I found another issue with using the bare JID if known: on some
> > IRC 
> > transports, the bare JID will depend on the connection of the
> > participant, and 
> > may vary on each join. Normally it would be preferable to have the
> > nick color 
> > constant.
> > 
> > So I now tend to use the nickname instead of the JID in MUCs. Does
> > anyone have 
> > objections?
> > 
> > kind regards,
> > Jonas_______________________________________________
> > Standards mailing list
> > Info: https://mail.jabber.org/mailman/listinfo/standards
> > Unsubscribe: Standards-unsubscribe at xmpp.org
> > _______________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/standards/attachments/20171208/fdebd1d6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6431 bytes
Desc: not available
URL: <http://mail.jabber.org/pipermail/standards/attachments/20171208/fdebd1d6/attachment.bin>


More information about the Standards mailing list