G

Traceback on MUC error

When joining a room where the nick was already taken, a traceback occured, and the room was not joined (the error appears immediately on the XML debug logs, but the error popup in the primitivus interface takes somthing like 15 secondes to appear). The XML sent: string "<presence to='sat@chat.jabberfr.org/louiz'><x xmlns='http://jabber.org/protocol/muc'/></presence>" The error received: string "<presence type='error' to='louiz@louiz.org/e19ea669-4c20-4cfb-8db5-664b53e8a470' from='sat@chat.jabberfr.org/louiz'><x xmlns='http//jabber.org/protocol/muc'/><error code='409' type='cancel'><conflict xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas' xml:lang='en'>Reserved Nick - Please choose a different nickname.</text></error></presence>" The traceback is Traceback (most recent call last): File "/builddir/build/BUILD/Python-2.7.1/Modules/pyexpat.c", line 618, in EndElement Traceback (most recent call last): File "/builddir/build/BUILD/Python-2.7.1/Modules/pyexpat.c", line 618, in EndElement File "/usr/lib64/python2.7/site-packages/twisted/words/xish/domish.py", line 797, in _onEndElement self.ElementEvent(self.currElem) File "/usr/lib64/python2.7/site-packages/twisted/words/xish/xmlstream.py", line 107, in onElement self.dispatch(element) File "/usr/lib64/python2.7/site-packages/twisted/words/xish/utility.py", line 317, in dispatch callbacklist.callback(obj) --- <exception caught here> --- File "/usr/lib64/python2.7/site-packages/twisted/words/xish/utility.py", line 107, in callback methodwrapper(*args, **kwargs) File "/usr/lib64/python2.7/site-packages/twisted/words/xish/utility.py", line 27, in __call__ self.method(*nargs, **nkwargs) File "/usr/lib/python2.7/site-packages/wokkel-0.6.3-py2.7.egg/wokkel/muc.py", line 859, in _joinedRoom d.errback(self._getExceptionFromElement(prs)) File "/usr/lib/python2.7/site-packages/wokkel-0.6.3-py2.7.egg/wokkel/muc.py", line 749, in _getExceptionFromElement return MUC_EXCEPTIONS[muc_condition] exceptions.KeyError: u'text' Reproducible with prosody by joining a room where the nick is already used or reserved.
G

Goffi 27/08/2011, 08:49

Should be fixed by using the soon-to-be-released next wokkel release. Using the updated MUC branch should work while waiting for the release.

id

2

author

Florent Le Coz

created

28/06/2011, 19:04

updated

27/08/2011, 08:49

labels
Backend
type
bug
status
closed
priority
normal
milestone
0.7
severity
major