You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by qu...@apache.org on 2018/08/29 10:33:28 UTC
[1/2] libcloud git commit: Convert object_size to string before
adding it to a header.
Repository: libcloud
Updated Branches:
refs/heads/trunk 1cbb2004f -> d029c30fa
Convert object_size to string before adding it to a header.
Since python-requests 2.11
(see https://github.com/requests/requests/issues/3477), integer values
in headers are no longer automatically converted to strings, so we need
to do it ourselves.
This is the same change that was done a couple of lines above for the
Content-Length header in commit 28a559042.
Signed-off-by: Quentin Pradet <qu...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/e77580d8
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/e77580d8
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/e77580d8
Branch: refs/heads/trunk
Commit: e77580d8e0bfacf95e68210448186af4b9109025
Parents: 1cbb200
Author: Andreas Hasenack <an...@canonical.com>
Authored: Tue Aug 28 09:41:54 2018 -0300
Committer: Quentin Pradet <qu...@apache.org>
Committed: Wed Aug 29 14:30:11 2018 +0400
----------------------------------------------------------------------
libcloud/storage/drivers/azure_blobs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/e77580d8/libcloud/storage/drivers/azure_blobs.py
----------------------------------------------------------------------
diff --git a/libcloud/storage/drivers/azure_blobs.py b/libcloud/storage/drivers/azure_blobs.py
index ae49a1d..ca63d3a 100644
--- a/libcloud/storage/drivers/azure_blobs.py
+++ b/libcloud/storage/drivers/azure_blobs.py
@@ -903,7 +903,7 @@ class AzureBlobsStorageDriver(StorageDriver):
if blob_type == 'PageBlob':
headers['Content-Length'] = str('0')
- headers['x-ms-blob-content-length'] = object_size
+ headers['x-ms-blob-content-length'] = str(object_size)
return headers
[2/2] libcloud git commit: Add changes for #1237
Posted by qu...@apache.org.
Add changes for #1237
Closes #1237
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/d029c30f
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/d029c30f
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/d029c30f
Branch: refs/heads/trunk
Commit: d029c30fa825cf946054ee199869e9c2b4b02c8a
Parents: e77580d
Author: Quentin Pradet <qu...@apache.org>
Authored: Wed Aug 29 14:32:42 2018 +0400
Committer: Quentin Pradet <qu...@apache.org>
Committed: Wed Aug 29 14:32:42 2018 +0400
----------------------------------------------------------------------
CHANGES.rst | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/d029c30f/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index 5832be2..0887229 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -126,6 +126,9 @@ Storage
- [Azure Blob Storage] Fix upload/download streams (GITHUB-1231)
[Michael Perel]
+- [Azure Blob Storage] Fix PageBlob headers (GITHUB-1237)
+ [Andreas Hasenack]
+
- [S3] Guess s3 upload content type (LIBCLOUD-958, GITHUB-1195)
[Iuri de Silvio]