[patch] weird error with regard to namespace
misc at mandriva.org
Sat Oct 13 20:09:08 UTC 2007
Today, a event was organised by the jabberfr group to promote the use of muc
room, by doing some kind of coding party on jabber. So i have decided to join
the room and see how it was going. However, i faced several problem with my
djabberd served account, mainly with error like this :
WARN - 37 stream error 'unsupported-stanza-type': jabber:client
after searching a little bit, i discovered it was caused by the server
jabber.nuxo.net, which is running this :
<version>jabberd sm 2.0s10</version>
<name>session manager (jabberd)</name>
That's not a client problem, because i was not able to reproduce this with the
same client (gajim svn) and the error was appearing for jabber:iq:last and
It seems that the server reuse tcp connection made for the dialback, as show by
<?xml version="1.0" encoding="UTF-8"?>
<db:result xmlns:db='jabber:server:dialback' to='example.org'
<db:result from='example.org' to='jabber.nuxo.net' type='valid'/>
<iq xmlns='jabber:client' type='result' id='141' from='xxxx at jabber.nuxo.net/Foo'
to='misc at example.org/Parents'>
( slightly edited to be more readable )
So the stanza end up being handled by a DJabberd::Connection::ServerIn object,
which reject it because it doesn't process jabber:client iq stanza. The patch is
simple ( see attached file ), but is the problem on djabberd or on the other
I was not able to decide this based on the reading of rfc 3920, but this seems
to me that we can expect any kind of stanza on any tcp connections, if the xmlns
is correct, so we should
handle them even in the ServerIn object. So can someone apply this patch, or
tell this is wrong ?
So far, it seems to fix the problem, but as i am not sure of the problem ( it
may be related to another thing ), I am not sure this is the correct fix.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 686 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/djabberd/attachments/20071013/9f9ad6e7/djabberd.server_in_problem.bin
More information about the Djabberd