Philipp Hörist pushed to branch nbxmpp_0.6 at gajim / python-nbxmpp
Commits:
07f9b818 by Philipp Hörist at 2019-02-18T18:54:08Z
Update ChangeLog
- - - - -
1 changed file:
- ChangeLog
Changes:
=====================================
ChangeLog
=====================================
@@ -1,7 +1,8 @@
-python-nbxmpp 0.6.10 (13 February 2019)
+python-nbxmpp 0.6.10 (19 February 2019)
* Add support for domain based name in features for GSSAPI
* Fix usage of BOSH
+ * Fix Jingle hash namespace
python-nbxmpp 0.6.9 (10 January 2019)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/07f9b8188e09ba38359068ec29…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/07f9b8188e09ba38359068ec29…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
54ea05ea by Philipp Hörist at 2019-02-17T17:17:35Z
Make getAttrs() return a copy
- - - - -
2 changed files:
- nbxmpp/modules/muc.py
- nbxmpp/simplexml.py
Changes:
=====================================
nbxmpp/modules/muc.py
=====================================
@@ -493,7 +493,7 @@ class MUC:
def _parse_muc_user(muc_user):
item = muc_user.getTag('item')
if item is not None:
- item_dict = item.getAttrs()
+ item_dict = item.getAttrs(copy=True)
if 'role' in item_dict:
item_dict['role'] = Role(item_dict['role'])
else:
=====================================
nbxmpp/simplexml.py
=====================================
@@ -21,6 +21,7 @@ projects. It is designed to be as standalone as possible
import logging
import xml.parsers.expat
from xml.parsers.expat import ExpatError
+from copy import deepcopy
log = logging.getLogger('nbxmpp.simplexml')
@@ -226,10 +227,12 @@ class Node:
self.kids.remove(node)
return node
- def getAttrs(self):
+ def getAttrs(self, copy=False):
"""
Return all node's attributes as dictionary
"""
+ if copy:
+ return deepcopy(self.attrs)
return self.attrs
def getAttr(self, key):
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/54ea05ea7dc78de70b5e4dec7c…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/54ea05ea7dc78de70b5e4dec7c…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
54d0e5b3 by Philipp Hörist at 2019-02-16T17:51:21Z
Dont fail on malformed avatar data
- - - - -
1 changed file:
- nbxmpp/modules/user_avatar.py
Changes:
=====================================
nbxmpp/modules/user_avatar.py
=====================================
@@ -94,6 +94,9 @@ class UserAvatar:
pubsub_node = stanza.getTag('pubsub')
items_node = pubsub_node.getTag('items')
item = items_node.getTag('item')
+ if item is None:
+ return raise_error(log.warning, stanza, 'stanza-malformed',
+ 'No item in node found')
sha = item.getAttr('id')
data_node = item.getTag('data', namespace=NS_AVATAR_DATA)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/54d0e5b35ea4d49e84d538e6ec…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/54d0e5b35ea4d49e84d538e6ec…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
7cd781e9 by Philipp Hörist at 2019-02-16T12:04:14Z
Get module instance after checking for zeroconf
- - - - -
1 changed file:
- gajim/plugins/pluginmanager.py
Changes:
=====================================
gajim/plugins/pluginmanager.py
=====================================
@@ -406,9 +406,9 @@ class PluginManager(metaclass=Singleton):
return
for con in app.connections.values():
for module in plugin.modules:
- instance, name = module.get_instance(con)
if not module.zeroconf and con.name == 'Local':
continue
+ instance, name = module.get_instance(con)
modules.register_single(con, instance, name)
# If handlers have been registered, register the
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/7cd781e921cfdb84ddcbce0f48df752768…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/7cd781e921cfdb84ddcbce0f48df752768…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
7eb56761 by Philipp Hörist at 2019-02-16T11:27:19Z
Dont fail on empty devicelist and bundle nodes
Fixes #66
- - - - -
1 changed file:
- nbxmpp/modules/omemo.py
Changes:
=====================================
nbxmpp/modules/omemo.py
=====================================
@@ -171,6 +171,9 @@ class OMEMO:
</item>
</items>
'''
+ if item is None:
+ return []
+
list_node = item.getTag('list', namespace=NS_OMEMO_TEMP)
if list_node is None:
raise StanzaMalformed('No list node found')
@@ -328,6 +331,9 @@ class OMEMO:
</bundle>
</item>
'''
+ if item is None:
+ raise StanzaMalformed('No item in node found')
+
bundle = item.getTag('bundle', namespace=NS_OMEMO_TEMP)
if bundle is None:
raise StanzaMalformed('No bundle node found')
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/7eb56761de16156204752fedc1…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/7eb56761de16156204752fedc1…
You're receiving this email because of your account on dev.gajim.org.