Re: JID Case Sensitivity
From: Mick Weiss <mweiss@xxxxxxxxxxxxxx>
Date: Thu, 11 Oct 2007 15:06:57 +0200 (CEST)
Jakob Schröter wrote:
On Wednesday October 10 2007, Hagit Yidov wrote:
Hi



I was wondering if anyone ran into a problem of JID-case-sensitivity.

According to XEP-0029 JID is case sensitive.

We are working with 'Openfire', and some where along the line

The JID changes to lowercase.

Does anyone know anything about this issue?

Hi,

A JID is not strictly case-sensitive. Only the resource part of a JID is. Both node and domain part are not. However, just converting to lower-case doesn't help, various stringprep profiles are supposed to be applied to the JID parts before you can safely compare them. If you use gloox' JID class *and* have libidn support compiled in, this is taken care of automatically.

BTW, I'm not sure XEP-0029 -- being deprecated -- is the best resource for any info on that topic. Better check RFC3920 directly.

cheers,
Jakob
As I see it - it is a bug in openfire where it just lowercases the JID (this is reproducible within the admin panel of openfire -- w/o even using gloox). Is it expected behavior? (I mean - to just go to lowercase).

I might just be misreading something here... so correct me if I am just mistaken. :-)

- Mick