Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nbxmpp for openSUSE:Factory 
checked in at 2024-02-13 22:44:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbxmpp (Old)
 and      /work/SRC/openSUSE:Factory/.python-nbxmpp.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nbxmpp"

Tue Feb 13 22:44:48 2024 rev:47 rq:1146438 version:4.5.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbxmpp/python-nbxmpp.changes      
2023-11-27 22:43:45.238673556 +0100
+++ /work/SRC/openSUSE:Factory/.python-nbxmpp.new.1815/python-nbxmpp.changes    
2024-02-13 22:45:16.338521138 +0100
@@ -1,0 +2,8 @@
+Tue Feb 13 13:23:17 UTC 2024 - Alexei Sorokin <sor.ale...@meowr.ru>
+
+- Update to version 2.5.4:
+  * Add XEP-0353 namespace.
+  * Correctly discover subject change.
+  * DateTime: Be more strict with parsing.
+
+-------------------------------------------------------------------

Old:
----
  python-nbxmpp-4.5.3.tar.bz2

New:
----
  python-nbxmpp-4.5.4.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-nbxmpp.spec ++++++
--- /var/tmp/diff_new_pack.4ZEDY7/_old  2024-02-13 22:45:16.978544170 +0100
+++ /var/tmp/diff_new_pack.4ZEDY7/_new  2024-02-13 22:45:16.982544314 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-nbxmpp
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 %endif
 %define _name   nbxmpp
 Name:           python-nbxmpp
-Version:        4.5.3
+Version:        4.5.4
 Release:        0
 Summary:        XMPP library by Gajim team
 License:        GPL-3.0-or-later

++++++ python-nbxmpp-4.5.3.tar.bz2 -> python-nbxmpp-4.5.4.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-nbxmpp-4.5.3/ChangeLog 
new/python-nbxmpp-4.5.4/ChangeLog
--- old/python-nbxmpp-4.5.3/ChangeLog   2023-11-22 09:29:21.000000000 +0100
+++ new/python-nbxmpp-4.5.4/ChangeLog   2024-02-12 22:43:59.000000000 +0100
@@ -1,3 +1,14 @@
+nbxmpp 4.5.4 (12 Feb 2024)
+
+  New
+
+  * Add XEP-0353 namespace
+
+  Bug Fixes
+
+  * Correctly discover subject change (#154)
+  * DateTime: Be more strict with parsing
+
 nbxmpp 4.5.3 (21 Nov 2023)
 
   New
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-nbxmpp-4.5.3/nbxmpp/__init__.py 
new/python-nbxmpp-4.5.4/nbxmpp/__init__.py
--- old/python-nbxmpp-4.5.3/nbxmpp/__init__.py  2023-11-22 09:29:21.000000000 
+0100
+++ new/python-nbxmpp-4.5.4/nbxmpp/__init__.py  2024-02-12 22:43:59.000000000 
+0100
@@ -3,4 +3,4 @@
 
 from .protocol import *  # pylint: disable=wrong-import-position
 
-__version__: str = '4.5.3'
+__version__: str = '4.5.4'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-nbxmpp-4.5.3/nbxmpp/modules/date_and_time.py 
new/python-nbxmpp-4.5.4/nbxmpp/modules/date_and_time.py
--- old/python-nbxmpp-4.5.3/nbxmpp/modules/date_and_time.py     2023-11-22 
09:29:21.000000000 +0100
+++ new/python-nbxmpp-4.5.4/nbxmpp/modules/date_and_time.py     2024-02-12 
22:43:59.000000000 +0100
@@ -160,6 +160,11 @@
     except ValueError:
         return None
 
+    if not 1 < date_time.year < 9999:
+        # Raise/Reduce MIN/MAX year so converting to different
+        # timezones cannot get out of range
+        return None
+
     if check_utc:
         if convert != 'utc':
             raise ValueError(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-nbxmpp-4.5.3/nbxmpp/modules/muc/muc.py 
new/python-nbxmpp-4.5.4/nbxmpp/modules/muc/muc.py
--- old/python-nbxmpp-4.5.3/nbxmpp/modules/muc/muc.py   2023-11-22 
09:29:21.000000000 +0100
+++ new/python-nbxmpp-4.5.4/nbxmpp/modules/muc/muc.py   2024-02-12 
22:43:59.000000000 +0100
@@ -228,11 +228,17 @@
                 properties.muc_ofrom = JID.from_string(address.getAttr('jid'))
 
     def _process_message_after_decryption(self, _client, _stanza, properties):
-        if properties.body is None and properties.subject is not None:
-            properties.muc_subject = MucSubject(
-                text=properties.subject,
-                author=properties.muc_nickname,
-                timestamp=properties.user_timestamp)
+        if properties.subject is None:
+            return
+
+        if (properties.body is not None or
+                properties.thread is not None):
+            return
+
+        properties.muc_subject = MucSubject(
+            text=properties.subject,
+            author=properties.muc_nickname,
+            timestamp=properties.user_timestamp)
 
     def _process_message(self, _client, stanza, properties):
         muc_user = stanza.getTag('x', namespace=Namespace.MUC_USER)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-nbxmpp-4.5.3/nbxmpp/namespaces.py 
new/python-nbxmpp-4.5.4/nbxmpp/namespaces.py
--- old/python-nbxmpp-4.5.3/nbxmpp/namespaces.py        2023-11-22 
09:29:21.000000000 +0100
+++ new/python-nbxmpp-4.5.4/nbxmpp/namespaces.py        2024-02-12 
22:43:59.000000000 +0100
@@ -98,6 +98,7 @@
     JINGLE_RTP_AUDIO: str = 'urn:xmpp:jingle:apps:rtp:audio'
     JINGLE_RTP_VIDEO: str = 'urn:xmpp:jingle:apps:rtp:video'
     JINGLE_XTLS: str = 'urn:xmpp:jingle:security:xtls:0'
+    JINGLE_MESSAGE: str = 'urn:xmpp:jingle-message:0'
     LAST: str = 'jabber:iq:last'
     LOCATION: str = 'http://jabber.org/protocol/geoloc'
     MAM_1: str = 'urn:xmpp:mam:1'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-nbxmpp-4.5.3/test/unit/test_datetime_parsing.py 
new/python-nbxmpp-4.5.4/test/unit/test_datetime_parsing.py
--- old/python-nbxmpp-4.5.3/test/unit/test_datetime_parsing.py  2023-11-22 
09:29:21.000000000 +0100
+++ new/python-nbxmpp-4.5.4/test/unit/test_datetime_parsing.py  2024-02-12 
22:43:59.000000000 +0100
@@ -37,6 +37,10 @@
             '2017-11-05T07:41:20+05:00': datetime(2017, 11, 5, 2, 41, 20, 0, 
timezone.utc),
             '2017-11-05T01:41:20+00:00': datetime(2017, 11, 5, 1, 41, 20, 0, 
timezone.utc),
             '2017-11-05T01:41:20Z': datetime(2017, 11, 5, 1, 41, 20, 0, 
timezone.utc),
+            '0002-11-05T01:41:20Z': datetime(2, 11, 5, 1, 41, 20, 0, 
timezone.utc),
+            '9998-11-05T01:41:20Z': datetime(9998, 11, 5, 1, 41, 20, 0, 
timezone.utc),
+            '0001-11-05T01:41:20Z': None,
+            '9999-11-05T01:41:20Z': None,
         }
 
         for time_string, expected_value in strings.items():

Reply via email to