[jdev] Necessity of stringprep support for the client
Sergey Dobrov
binary at jrudevels.org
Mon Aug 20 12:14:07 UTC 2012
On 08/20/2012 06:17 PM, Waqas Hussain wrote:
> On Sun, Aug 19, 2012 at 1:35 PM, Kevin Smith <kevin at kismith.co.uk> wrote:
>> On Sun, Aug 19, 2012 at 4:29 AM, Waqas Hussain <waqas20 at gmail.com> wrote:
>>> 3. Stanzas
>>>
>>> The server gives you back a <jid-malformed/> error. What more do you need?
>>
>> For sending, yes - but you also need to be comparing JIDs that you
>> receive, and you need to prep them before comparison.
>>
>> Let's say you send an iq to=someunpreppedJID. You receive an iq
>> result, you check the ID matches - it does, you check the from matches
>> the to you sent - it doesn't, you bin the stanza as unsolicited.
>> Except had you prepped the to/from before comparison you'd have found
>> a match.
>>
>> If clients don't prep there's the chance for assorted things to get
>> broken in interesting ways.
>>
>> /K
>
> Agreed. Normalization is required before JID comparisons or lookups.
> The question is how. My preferences in order are: 1) a client side
> library, 2) an in-band service, 3) an out-of-band service.
>
> I'd very much like the idea of a Javascript library explored. The
> client having to call the server back on every single stanza (or less
> with caching, but still), is suboptimal to say the least.
I think that this is not a big problem to have such a library, but can
you guess which size of data will be needed to download then?
>
> --
> Waqas Hussain
> _______________________________________________
> JDev mailing list
> Info: http://mail.jabber.org/mailman/listinfo/jdev
> Unsubscribe: JDev-unsubscribe at jabber.org
> _______________________________________________
>
--
With best regards,
Sergey Dobrov,
XMPP Developer and JRuDevels.org founder.
More information about the JDev
mailing list