Skip to content

Commit d7e9f1d

Browse files
[Storage][Hotfix] Fix BlobSasPermission default value for Tag (Azure#23651) (Azure#23715)
1 parent bace881 commit d7e9f1d

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

sdk/storage/azure-storage-blob/CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
# Release History
22

3-
## 12.10.1 (Unreleased)
3+
## 12.12.0b1 (Unreleased)
44

55
### Features Added
66
- Added support for `create_if_not_exists()` for `BlobContainerClient`
77

8+
## 12.11.0 (2022-03-29)
9+
10+
**Warning** This release involves a bug fix that may change the behavior for some users. In previous versions,
11+
the `tag` parameter on`BlobSasPermissions` defaulted to `True` meaning a Blob SAS URL would include the `t` permission
12+
by default. This was not the intended behavior. This release adjusts `BlobSasPermission` so the `tag` permission will
13+
default to `False`, like all other permissions.
14+
15+
### Bugs Fixed
16+
- Fixed a bug in `BlobSasPermissions` where the `tag` permission had a default value of `True` and
17+
therefore was being added to the SAS token by default.
18+
819
## 12.10.0 (2022-03-08)
920

1021
This version and all future versions will require Python 3.6+. Python 2.7 is no longer supported.

sdk/storage/azure-storage-blob/azure/storage/blob/_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ class BlobSasPermissions(object):
10331033
To get immutability policy, you just need read permission.
10341034
"""
10351035
def __init__(self, read=False, add=False, create=False, write=False,
1036-
delete=False, delete_previous_version=False, tag=True, **kwargs):
1036+
delete=False, delete_previous_version=False, tag=False, **kwargs):
10371037
self.read = read
10381038
self.add = add
10391039
self.create = create

sdk/storage/azure-storage-blob/azure/storage/blob/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# license information.
55
# --------------------------------------------------------------------------
66

7-
VERSION = "12.10.1"
7+
VERSION = "12.12.0b1"

0 commit comments

Comments
 (0)