id

2

publisher

goffi@goffi.org/d08fc2c8-30c5-4081-bff7-2f0f733436e8

title
Traceback on MUC error
reporter
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
body

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.

comments_uri
xmpp:pubsub.goffi.org?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Forg.salut-a-toi.tickets%3A0_2

Click to reduce…

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.

Click to expand… Click to reduce…

You are not logged. You need to log in to comment.