Bug 26141

Summary: Doesn't know how to deal with a presence probe
Product: Telepathy Reporter: Simon McVittie <smcv>
Component: fargoAssignee: David Laban <david.laban>
Status: RESOLVED FIXED QA Contact: Simon McVittie <smcv>
Severity: normal    
Priority: medium Keywords: patch
Version: git master   
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/smcv/telepathy-fargo.git;a=shortlog;h=refs/heads/presence
Whiteboard: correctness
i915 platform: i915 features:

Description Simon McVittie 2010-01-20 10:51:20 UTC
When I disconnect from Gabble and reconnect, my XMPP server probes fargo, and fargo doesn't know how to deal with that. It should reply with its own available presence, probably?

2010-01-20 18:47:44+0000 [XmlStream,client] [RECV]
	            -----------------------------------
	            <presence xmlns='jabber:component:accept' to='gw.jabbercluster.virt' from='smcv@jabbercluster.virt/X' type='probe'/>
	            -----------------------------------
	        
2010-01-20 18:47:44+0000 [XmlStream,client] Unhandled Error
	Traceback (most recent call last):
	  File "/usr/lib/python2.5/site-packages/twisted/words/xish/domish.py", line 780, in _onEndElement
	    self.ElementEvent(self.currElem)
	  File "/srv/tpfargo/telepathy-fargo/telepathy_fargo/component.py", line 118, in onElement
	    self.xmlstream.onElement(element)
	  File "/usr/lib/python2.5/site-packages/twisted/words/xish/xmlstream.py", line 106, in onElement
	    self.dispatch(element)
	  File "/usr/lib/python2.5/site-packages/twisted/words/xish/utility.py", line 316, in dispatch
	    callbacklist.callback(obj)
	--- <exception caught here> ---
	  File "/usr/lib/python2.5/site-packages/twisted/words/xish/utility.py", line 106, in callback
	    methodwrapper(*args, **kwargs)
	  File "/usr/lib/python2.5/site-packages/twisted/words/xish/utility.py", line 27, in __call__
	    self.method(*nargs, **nkwargs)
	  File "/srv/tpfargo/telepathy-fargo/telepathy_fargo/component.py", line 258, in presence
	    f = self.presence_dispatch[type]
	exceptions.KeyError: u'probe'
Comment 1 Simon McVittie 2010-01-25 07:38:38 UTC
Fixed in my 'presence' branch along with Bug #26208

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.