Author: tomaz
Date: Sun Nov 18 23:28:50 2012
New Revision: 1411021
URL: http://svn.apache.org/viewvc?rev=1411021&view=rev
Log:
Backport bug-fix commit from trunk:
Fix a bug where a numeric instead of a string value was used for the
content-length header in VCloud driver. Reported by Brian DeGeeter, part of
LIBCLOUD-256.
Modified:
libcloud/branches/0.11.x/ (props changed)
libcloud/branches/0.11.x/CHANGES
libcloud/branches/0.11.x/libcloud/compute/drivers/vcloud.py
Propchange: libcloud/branches/0.11.x/
------------------------------------------------------------------------------
Merged /libcloud/trunk:r1407664
Modified: libcloud/branches/0.11.x/CHANGES
URL:
http://svn.apache.org/viewvc/libcloud/branches/0.11.x/CHANGES?rev=1411021&r1=1411020&r2=1411021&view=diff
==============================================================================
--- libcloud/branches/0.11.x/CHANGES (original)
+++ libcloud/branches/0.11.x/CHANGES Sun Nov 18 23:28:50 2012
@@ -2,9 +2,13 @@
Changes with Apache Libcloud in development:
+ - Fix a bug where a numeric instead of a string value was used for the
+ content-length header in VCloud driver. ; LIBCLOUD-256
+ [Brian DeGeeter, Tomaz Muraus]
+
*) Storage
- - Don't ignire ex_force_service_region argument in the CloudFiles driver.
+ - Don't ignore ex_force_service_region argument in the CloudFiles driver.
; LIBCLOUD-260
[Dan Di Spaltro]
Modified: libcloud/branches/0.11.x/libcloud/compute/drivers/vcloud.py
URL:
http://svn.apache.org/viewvc/libcloud/branches/0.11.x/libcloud/compute/drivers/vcloud.py?rev=1411021&r1=1411020&r2=1411021&view=diff
==============================================================================
--- libcloud/branches/0.11.x/libcloud/compute/drivers/vcloud.py (original)
+++ libcloud/branches/0.11.x/libcloud/compute/drivers/vcloud.py Sun Nov 18
23:28:50 2012
@@ -281,7 +281,7 @@ class VCloudConnection(ConnectionUserAnd
return {
'Authorization': "Basic %s" % base64.b64encode(
b('%s:%s' % (self.user_id, self.key))).decode('utf-8'),
- 'Content-Length': 0,
+ 'Content-Length': '0',
'Accept': 'application/*+xml'
}
@@ -732,7 +732,7 @@ class HostingComConnection(VCloudConnect
return {
'Authentication': base64.b64encode(b('%s:%s' % (self.user_id,
self.key))),
- 'Content-Length': 0
+ 'Content-Length': '0'
}