Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-WebOb for openSUSE:Factory 
checked in at 2021-03-05 13:43:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-WebOb (Old)
 and      /work/SRC/openSUSE:Factory/.python-WebOb.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-WebOb"

Fri Mar  5 13:43:11 2021 rev:30 rq:876093 version:1.8.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-WebOb/python-WebOb.changes        
2020-03-12 22:59:10.187011384 +0100
+++ /work/SRC/openSUSE:Factory/.python-WebOb.new.2378/python-WebOb.changes      
2021-03-05 13:43:13.403510226 +0100
@@ -1,0 +2,8 @@
+Tue Mar  2 00:33:29 UTC 2021 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 1.8.7:
+  - Decoding deflate-encoded responses now supports data which is packed in
+    a zlib container as it is supposed to be. The old, non-standard behaviour
+    is still supported.
+
+-------------------------------------------------------------------

Old:
----
  WebOb-1.8.6.tar.gz

New:
----
  WebOb-1.8.7.tar.gz

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

Other differences:
------------------
++++++ python-WebOb.spec ++++++
--- /var/tmp/diff_new_pack.4VPHbf/_old  2021-03-05 13:43:13.899510677 +0100
+++ /var/tmp/diff_new_pack.4VPHbf/_new  2021-03-05 13:43:13.899510677 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-WebOb
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define oldpython python
 Name:           python-WebOb
-Version:        1.8.6
+Version:        1.8.7
 Release:        0
 Summary:        WSGI request and response object
 License:        MIT

++++++ WebOb-1.8.6.tar.gz -> WebOb-1.8.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebOb-1.8.6/CHANGES.txt new/WebOb-1.8.7/CHANGES.txt
--- old/WebOb-1.8.6/CHANGES.txt 2020-01-22 05:49:00.000000000 +0100
+++ new/WebOb-1.8.7/CHANGES.txt 2021-02-18 07:50:48.000000000 +0100
@@ -1,3 +1,16 @@
+1.8.7 (2021-02-17)
+------------------
+
+Bugfix
+~~~~~~
+
+- Decoding deflate-encoded responses now supports data which is packed in
+  a zlib container as it is supposed to be. The old, non-standard behaviour
+  is still supported.
+
+  See https://github.com/Pylons/webob/pull/426
+
+
 1.8.6 (2020-01-21)
 ------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebOb-1.8.6/PKG-INFO new/WebOb-1.8.7/PKG-INFO
--- old/WebOb-1.8.6/PKG-INFO    2020-01-22 06:22:51.000000000 +0100
+++ new/WebOb-1.8.7/PKG-INFO    2021-02-18 07:52:42.592610100 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: WebOb
-Version: 1.8.6
+Version: 1.8.7
 Summary: WSGI request and response object
 Home-page: http://webob.org/
 Author: Ian Bicking
@@ -44,6 +44,19 @@
         WebOb was authored by Ian Bicking and is currently maintained by the 
`Pylons
         Project <https://pylonsproject.org/>`_ and a team of contributors.
         
+        1.8.7 (2021-02-17)
+        ------------------
+        
+        Bugfix
+        ~~~~~~
+        
+        - Decoding deflate-encoded responses now supports data which is packed 
in
+          a zlib container as it is supposed to be. The old, non-standard 
behaviour
+          is still supported.
+        
+          See https://github.com/Pylons/webob/pull/426
+        
+        
         1.8.6 (2020-01-21)
         ------------------
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebOb-1.8.6/setup.py new/WebOb-1.8.7/setup.py
--- old/WebOb-1.8.6/setup.py    2020-01-22 05:52:08.000000000 +0100
+++ new/WebOb-1.8.7/setup.py    2021-02-18 07:51:05.000000000 +0100
@@ -25,7 +25,7 @@
 
 setup(
     name='WebOb',
-    version='1.8.6',
+    version='1.8.7',
     description="WSGI request and response object",
     long_description=README + '\n\n' + CHANGES,
     classifiers=[
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebOb-1.8.6/src/WebOb.egg-info/PKG-INFO 
new/WebOb-1.8.7/src/WebOb.egg-info/PKG-INFO
--- old/WebOb-1.8.6/src/WebOb.egg-info/PKG-INFO 2020-01-22 06:22:51.000000000 
+0100
+++ new/WebOb-1.8.7/src/WebOb.egg-info/PKG-INFO 2021-02-18 07:52:42.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: WebOb
-Version: 1.8.6
+Version: 1.8.7
 Summary: WSGI request and response object
 Home-page: http://webob.org/
 Author: Ian Bicking
@@ -44,6 +44,19 @@
         WebOb was authored by Ian Bicking and is currently maintained by the 
`Pylons
         Project <https://pylonsproject.org/>`_ and a team of contributors.
         
+        1.8.7 (2021-02-17)
+        ------------------
+        
+        Bugfix
+        ~~~~~~
+        
+        - Decoding deflate-encoded responses now supports data which is packed 
in
+          a zlib container as it is supposed to be. The old, non-standard 
behaviour
+          is still supported.
+        
+          See https://github.com/Pylons/webob/pull/426
+        
+        
         1.8.6 (2020-01-21)
         ------------------
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebOb-1.8.6/src/webob/response.py 
new/WebOb-1.8.7/src/webob/response.py
--- old/WebOb-1.8.6/src/webob/response.py       2020-01-22 05:40:19.000000000 
+0100
+++ new/WebOb-1.8.7/src/webob/response.py       2021-02-18 07:47:54.000000000 
+0100
@@ -1249,8 +1249,15 @@
             self.content_encoding = None
             gzip_f.close()
         else:
-            # Weird feature: http://bugs.python.org/issue5784
-            self.body = zlib.decompress(self.body, -15)
+            try:
+                # RFC7230 section 4.2.2 specifies that the body should be 
wrapped
+                # inside a ZLIB (RFC1950) container ...
+                self.body = zlib.decompress(self.body)
+            except zlib.error:
+                # ... but there are nonconformant implementations around which 
send
+                # the data without the ZLIB container, so we use maximum 
window size
+                # decompression without header check (the - sign)
+                self.body = zlib.decompress(self.body, -15)
             self.content_encoding = None
 
     def md5_etag(self, body=None, set_content_md5=False):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WebOb-1.8.6/tests/test_response.py 
new/WebOb-1.8.7/tests/test_response.py
--- old/WebOb-1.8.6/tests/test_response.py      2020-01-22 05:39:59.000000000 
+0100
+++ new/WebOb-1.8.7/tests/test_response.py      2021-02-18 07:47:54.000000000 
+0100
@@ -381,6 +381,18 @@
     assert res.body == body
     assert res.content_encoding is None
 
+def test_decode_content_with_deflate_and_zlib_header():
+    res = Response()
+    body = b"Hey Hey Hey"
+    # don't chop off the zlib container
+    # https://tools.ietf.org/html/rfc7230#section-4.2.2 says
+    # that chopping it exists but is non-conformant
+    res.body = zlib.compress(body)
+    res.content_encoding = "deflate"
+    res.decode_content()
+    assert res.body == body
+    assert res.content_encoding is None
+
 def test_content_length():
     r0 = Response('x' * 10, content_length=10)
 

Reply via email to