id

143

title
subscription error
reporter
Анна Мухаррам
created
31/07/2016, 13:03
updated
10/08/2016, 20:04
labels
Libervia
type
bug
status
closed
priority
normal
milestone
0.7
severity
normal
body

I have implemented 0355 and 0356 Xeps for ejabberd and used Sat to check it's validation (You can find it on https://github.com/Amuhar/ejabberd/tree/xep0356). All things work Ok, but I can't subscribe to users (with Prosody I can do it): 2016-07-31T12:47:42+0300 [XmlStream,client] subscription request from [libervia@localhost] 2016-07-31T12:47:42+0300 [XmlStream,client] Unhandled Error Traceback (most recent call last): File "/build/buildd/python2.7-2.7.6/Modules/pyexpat.c", line 618, in EndElement File "/usr/local/lib/python2.7/dist-packages/twisted/words/xish/domish.py", line 797, in _onEndElement self.ElementEvent(self.currElem) File "/usr/local/lib/python2.7/dist-packages/twisted/words/xish/xmlstream.py", line 107, in onElement self.dispatch(element) File "/usr/local/lib/python2.7/dist-packages/twisted/words/xish/utility.py", line 317, in dispatch callbacklist.callback(obj) --- <exception caught here> --- File "/usr/local/lib/python2.7/dist-packages/twisted/words/xish/utility.py", line 107, in callback methodwrapper(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/twisted/words/xish/utility.py", line 27, in __call__ self.method(*nargs, **nkwargs) File "/usr/local/lib/python2.7/dist-packages/wokkel/xmppim.py", line 87, in _onPresence handler(presence) File "/usr/local/lib/python2.7/dist-packages/wokkel/xmppim.py", line 119, in _onPresenceSubscribe self.subscribeReceived(JID(presence["from"])) File "/usr/local/lib/python2.7/dist-packages/sat/core/xmpp.py", line 460, in subscribeReceived item = self.parent.roster.getItem(entity) File "/usr/local/lib/python2.7/dist-packages/sat/core/xmpp.py", line 306, in getItem return self._jids.get(entity_jid, None) exceptions.AttributeError: 'NoneType' object has no attribute 'get' Details: SàT version: 0.6.0D Libervia version: 0.6.0D OS: Distributor ID: LinuxMint Description: Linux Mint 17.3 Rosa Release: 17.3 Codename: rosa

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

Click to reduce…

After checking, this is a synchronization issue which happen when subscription is received before roster is received. This is fixed in current dev branch (has been fixed in a2bc5089c2eb). This is a wontfix because we don't apply patches on 0.6.x branch as we need to concentrate forces on current 0.7-dev, which will be the first real stable one, and which will be maintained.

Click to expand… Click to reduce…

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