Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-azure-storage-queue for
openSUSE:Factory checked in at 2023-10-11 23:56:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-azure-storage-queue (Old)
and /work/SRC/openSUSE:Factory/.python-azure-storage-queue.new.1807 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-azure-storage-queue"
Wed Oct 11 23:56:18 2023 rev:19 rq:1116913 version:12.7.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-azure-storage-queue/python-azure-storage-queue.changes
2023-10-05 20:04:46.566231013 +0200
+++
/work/SRC/openSUSE:Factory/.python-azure-storage-queue.new.1807/python-azure-storage-queue.changes
2023-10-12 11:52:21.695343212 +0200
@@ -1,0 +2,8 @@
+Wed Oct 11 10:13:56 UTC 2023 - John Paul Adrian Glaubitz
<[email protected]>
+
+- New upstream release
+ + Version 12.7.3
+ + For detailed information about changes see the
+ CHANGELOG.md file provided with this package
+
+-------------------------------------------------------------------
Old:
----
azure-storage-queue-12.7.1.tar.gz
New:
----
azure-storage-queue-12.7.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-azure-storage-queue.spec ++++++
--- /var/tmp/diff_new_pack.Us464j/_old 2023-10-12 11:52:22.375367441 +0200
+++ /var/tmp/diff_new_pack.Us464j/_new 2023-10-12 11:52:22.375367441 +0200
@@ -21,7 +21,7 @@
%define skip_python2 1
%endif
Name: python-azure-storage-queue
-Version: 12.7.1
+Version: 12.7.3
Release: 0
Summary: Microsoft Azure Storage Queue Client Library for Python
License: MIT
++++++ azure-storage-queue-12.7.1.tar.gz -> azure-storage-queue-12.7.3.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-storage-queue-12.7.1/CHANGELOG.md
new/azure-storage-queue-12.7.3/CHANGELOG.md
--- old/azure-storage-queue-12.7.1/CHANGELOG.md 2023-09-13 23:18:55.000000000
+0200
+++ new/azure-storage-queue-12.7.3/CHANGELOG.md 2023-10-10 23:34:03.000000000
+0200
@@ -1,5 +1,17 @@
# Release History
+## 12.7.3 (2023-10-10)
+
+### Bugs Fixed
+- Fixed an issue when an invalid type was provided for `credential` during
client construction, the
+`__str__` of the object would be present in the exception message and
therefore potentially logged.
+
+## 12.7.2 (2023-09-25)
+
+### Bugs Fixed
+- Fixed an issue where `user_agent` was being ignored on `send_message`,
`receive_message`, `receive_messages`,
+`update_message`, and `peek_messages` if client was configured for encryption.
+
## 12.7.1 (2023-09-13)
### Bugs Fixed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-storage-queue-12.7.1/PKG-INFO
new/azure-storage-queue-12.7.3/PKG-INFO
--- old/azure-storage-queue-12.7.1/PKG-INFO 2023-09-13 23:19:56.268464000
+0200
+++ new/azure-storage-queue-12.7.3/PKG-INFO 2023-10-10 23:34:59.192380700
+0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: azure-storage-queue
-Version: 12.7.1
+Version: 12.7.3
Summary: Microsoft Azure Azure Queue Storage Client Library for Python
Home-page:
https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
Author: Microsoft Corporation
@@ -15,6 +15,7 @@
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.7
Description-Content-Type: text/markdown
@@ -433,6 +434,18 @@
# Release History
+## 12.7.3 (2023-10-10)
+
+### Bugs Fixed
+- Fixed an issue when an invalid type was provided for `credential` during
client construction, the
+`__str__` of the object would be present in the exception message and
therefore potentially logged.
+
+## 12.7.2 (2023-09-25)
+
+### Bugs Fixed
+- Fixed an issue where `user_agent` was being ignored on `send_message`,
`receive_message`, `receive_messages`,
+`update_message`, and `peek_messages` if client was configured for encryption.
+
## 12.7.1 (2023-09-13)
### Bugs Fixed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-storage-queue-12.7.1/azure/storage/queue/_encryption.py
new/azure-storage-queue-12.7.3/azure/storage/queue/_encryption.py
--- old/azure-storage-queue-12.7.1/azure/storage/queue/_encryption.py
2023-09-13 23:18:55.000000000 +0200
+++ new/azure-storage-queue-12.7.3/azure/storage/queue/_encryption.py
2023-10-10 23:34:03.000000000 +0200
@@ -286,13 +286,23 @@
:param str encryption_version: The version of encryption being used.
:param Dict[str, Any] request_options: The reuqest options to add the user
agent override to.
"""
+ # If the user has specified user_agent_overwrite=True, don't make any
modifications
+ if request_options.get('user_agent_overwrite'):
+ return
+
+ # If the feature flag is already present, don't add it again
feature_flag = f"azstorage-clientsideencryption/{encryption_version}"
- if feature_flag not in user_agent:
- index = user_agent.find(f"azsdk-python-{moniker}")
- user_agent = f"{user_agent[:index]}{feature_flag} {user_agent[index:]}"
+ if feature_flag in user_agent:
+ return
+
+ index = user_agent.find(f"azsdk-python-{moniker}")
+ user_agent = f"{user_agent[:index]}{feature_flag} {user_agent[index:]}"
+ # Since we are using user_agent_overwrite=True, we must prepend the user's
user_agent if there is one
+ if request_options.get('user_agent'):
+ user_agent = f"{request_options.get('user_agent')} {user_agent}"
- request_options['user_agent'] = user_agent
- request_options['user_agent_overwrite'] = True
+ request_options['user_agent'] = user_agent
+ request_options['user_agent_overwrite'] = True
def get_adjusted_upload_size(length: int, encryption_version: str) -> int:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-storage-queue-12.7.1/azure/storage/queue/_shared/base_client.py
new/azure-storage-queue-12.7.3/azure/storage/queue/_shared/base_client.py
--- old/azure-storage-queue-12.7.1/azure/storage/queue/_shared/base_client.py
2023-09-13 23:18:55.000000000 +0200
+++ new/azure-storage-queue-12.7.3/azure/storage/queue/_shared/base_client.py
2023-10-10 23:34:03.000000000 +0200
@@ -227,7 +227,7 @@
elif isinstance(credential, AzureSasCredential):
self._credential_policy = AzureSasCredentialPolicy(credential)
elif credential is not None:
- raise TypeError(f"Unsupported credential: {credential}")
+ raise TypeError(f"Unsupported credential: {type(credential)}")
config = kwargs.get("_configuration") or create_configuration(**kwargs)
if kwargs.get("_pipeline"):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-storage-queue-12.7.1/azure/storage/queue/_shared/base_client_async.py
new/azure-storage-queue-12.7.3/azure/storage/queue/_shared/base_client_async.py
---
old/azure-storage-queue-12.7.1/azure/storage/queue/_shared/base_client_async.py
2023-09-13 23:18:55.000000000 +0200
+++
new/azure-storage-queue-12.7.3/azure/storage/queue/_shared/base_client_async.py
2023-10-10 23:34:03.000000000 +0200
@@ -76,7 +76,7 @@
elif isinstance(credential, AzureSasCredential):
self._credential_policy = AzureSasCredentialPolicy(credential)
elif credential is not None:
- raise TypeError(f"Unsupported credential: {credential}")
+ raise TypeError(f"Unsupported credential: {type(credential)}")
config = kwargs.get('_configuration') or create_configuration(**kwargs)
if kwargs.get('_pipeline'):
return config, kwargs['_pipeline']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-storage-queue-12.7.1/azure/storage/queue/_version.py
new/azure-storage-queue-12.7.3/azure/storage/queue/_version.py
--- old/azure-storage-queue-12.7.1/azure/storage/queue/_version.py
2023-09-13 23:18:55.000000000 +0200
+++ new/azure-storage-queue-12.7.3/azure/storage/queue/_version.py
2023-10-10 23:34:03.000000000 +0200
@@ -4,4 +4,4 @@
# license information.
# --------------------------------------------------------------------------
-VERSION = "12.7.1"
+VERSION = "12.7.3"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-storage-queue-12.7.1/azure_storage_queue.egg-info/PKG-INFO
new/azure-storage-queue-12.7.3/azure_storage_queue.egg-info/PKG-INFO
--- old/azure-storage-queue-12.7.1/azure_storage_queue.egg-info/PKG-INFO
2023-09-13 23:19:56.000000000 +0200
+++ new/azure-storage-queue-12.7.3/azure_storage_queue.egg-info/PKG-INFO
2023-10-10 23:34:59.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: azure-storage-queue
-Version: 12.7.1
+Version: 12.7.3
Summary: Microsoft Azure Azure Queue Storage Client Library for Python
Home-page:
https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
Author: Microsoft Corporation
@@ -15,6 +15,7 @@
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.7
Description-Content-Type: text/markdown
@@ -433,6 +434,18 @@
# Release History
+## 12.7.3 (2023-10-10)
+
+### Bugs Fixed
+- Fixed an issue when an invalid type was provided for `credential` during
client construction, the
+`__str__` of the object would be present in the exception message and
therefore potentially logged.
+
+## 12.7.2 (2023-09-25)
+
+### Bugs Fixed
+- Fixed an issue where `user_agent` was being ignored on `send_message`,
`receive_message`, `receive_messages`,
+`update_message`, and `peek_messages` if client was configured for encryption.
+
## 12.7.1 (2023-09-13)
### Bugs Fixed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-storage-queue-12.7.1/setup.py
new/azure-storage-queue-12.7.3/setup.py
--- old/azure-storage-queue-12.7.1/setup.py 2023-09-13 23:18:55.000000000
+0200
+++ new/azure-storage-queue-12.7.3/setup.py 2023-10-10 23:34:03.000000000
+0200
@@ -46,7 +46,7 @@
url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue',
keywords="azure, azure sdk",
classifiers=[
- "Development Status :: 5 - Production/Stable",
+ 'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
"Programming Language :: Python :: 3 :: Only",
'Programming Language :: Python :: 3',
@@ -54,6 +54,7 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
+ 'Programming Language :: Python :: 3.11',
'License :: OSI Approved :: MIT License',
],
zip_safe=False,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-storage-queue-12.7.1/tests/test_queue_encryption.py
new/azure-storage-queue-12.7.3/tests/test_queue_encryption.py
--- old/azure-storage-queue-12.7.1/tests/test_queue_encryption.py
2023-09-13 23:18:55.000000000 +0200
+++ new/azure-storage-queue-12.7.3/tests/test_queue_encryption.py
2023-10-10 23:34:03.000000000 +0200
@@ -772,6 +772,42 @@
# Assert
assert content == decrypted_data
+ @QueuePreparer()
+ @recorded_by_proxy
+ def test_encryption_user_agent(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ app_id = 'TestAppId'
+ content = 'Hello World Encrypted!'
+ kek = KeyWrapper('key1')
+
+ def assert_user_agent(request):
+ start = f'{app_id} azstorage-clientsideencryption/2.0 '
+ assert request.http_request.headers['User-Agent'].startswith(start)
+
+ # Test method level keyword
+ qsc = QueueServiceClient(
+ self.account_url(storage_account_name, "queue"),
+ storage_account_key,
+ require_encryption=True,
+ encryption_version='2.0',
+ key_encryption_key=kek)
+ queue = self._create_queue(qsc)
+ queue.send_message(content, raw_request_hook=assert_user_agent,
user_agent=app_id)
+
+ # Test client constructor level keyword
+ qsc = QueueServiceClient(
+ self.account_url(storage_account_name, "queue"),
+ storage_account_key,
+ require_encryption=True,
+ encryption_version='2.0',
+ key_encryption_key=kek,
+ user_agent=app_id)
+
+ queue = self._get_queue_reference(qsc)
+ queue.send_message(content, raw_request_hook=assert_user_agent)
+
#
------------------------------------------------------------------------------
if __name__ == '__main__':
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-storage-queue-12.7.1/tests/test_queue_encryption_async.py
new/azure-storage-queue-12.7.3/tests/test_queue_encryption_async.py
--- old/azure-storage-queue-12.7.1/tests/test_queue_encryption_async.py
2023-09-13 23:18:55.000000000 +0200
+++ new/azure-storage-queue-12.7.3/tests/test_queue_encryption_async.py
2023-10-10 23:34:03.000000000 +0200
@@ -781,6 +781,42 @@
# Assert
assert content == decrypted_data
+ @QueuePreparer()
+ @recorded_by_proxy_async
+ async def test_encryption_user_agent(self, **kwargs):
+ storage_account_name = kwargs.pop("storage_account_name")
+ storage_account_key = kwargs.pop("storage_account_key")
+
+ app_id = 'TestAppId'
+ content = 'Hello World Encrypted!'
+ kek = KeyWrapper('key1')
+
+ def assert_user_agent(request):
+ start = f'{app_id} azstorage-clientsideencryption/2.0 '
+ assert request.http_request.headers['User-Agent'].startswith(start)
+
+ # Test method level keyword
+ qsc = QueueServiceClient(
+ self.account_url(storage_account_name, "queue"),
+ storage_account_key,
+ require_encryption=True,
+ encryption_version='2.0',
+ key_encryption_key=kek)
+ queue = await self._create_queue(qsc)
+ await queue.send_message(content, raw_request_hook=assert_user_agent,
user_agent=app_id)
+
+ # Test client constructor level keyword
+ qsc = QueueServiceClient(
+ self.account_url(storage_account_name, "queue"),
+ storage_account_key,
+ require_encryption=True,
+ encryption_version='2.0',
+ key_encryption_key=kek,
+ user_agent=app_id)
+
+ queue = self._get_queue_reference(qsc)
+ await queue.send_message(content, raw_request_hook=assert_user_agent)
+
#
------------------------------------------------------------------------------
if __name__ == '__main__':