[patch] do not answer to adhoc command discovery queries
misc at mandriva.org
Mon Sep 24 14:31:47 UTC 2007
I discovered by accident that djabberd answer to all discovery query, even those
for adhoc command ( XEP 0050 ), and it was giving weird result with my jabber
client ( a empty list instead of the usaul message "the server do not support
Basically, my client sent this :
<iq to="example.org" type="get" id="218" from="misc at example.org/Gajim">
and djabberd should not answer to such queries, and instead, it answered this :
<iq to='misc at example.org/Gajim' from='example.org' type='result' id='218'>
<item jid='chat.example.org' name='' />
Obviously, it answer as if the query was a normal one.
So I filled a bug against the client ( http://trac.gajim.org/ticket/3460 ), and
I propose the following patch to djabberd.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 949 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/djabberd/attachments/20070924/d4bbd880/djabberd.do_not_respond_to_adhoc_disco.bin
More information about the Djabberd