You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by "Brian DeGeeter (JIRA)" <ji...@apache.org> on 2012/11/09 18:46:12 UTC
[dev] [jira] [Created] (LIBCLOUD-256) Content-length header causes
httplib exception in VCloudConnection
Brian DeGeeter created LIBCLOUD-256:
---------------------------------------
Summary: Content-length header causes httplib exception in VCloudConnection
Key: LIBCLOUD-256
URL: https://issues.apache.org/jira/browse/LIBCLOUD-256
Project: Libcloud
Issue Type: Bug
Components: Compute
Affects Versions: 0.11.2
Environment: Centos 5.8, python 2.7,
Reporter: Brian DeGeeter
_get_auth_headers in VCloudConnnection raises and exception due to an integer 0 set as the Content-Length. The issues is resolved by setting the Content-Length to a string '0'.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[dev] [jira] [Commented] (LIBCLOUD-256) Content-length header causes
httplib exception in VCloudConnection
Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LIBCLOUD-256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13494342#comment-13494342 ]
Tomaz Muraus commented on LIBCLOUD-256:
---------------------------------------
Thanks for the report and fix.
There was another occurrence where a number instead of a string was used for a header value inside this file. Fix has been merged into trunk - http://svn.apache.org/viewvc?view=revision&revision=1407664
> Content-length header causes httplib exception in VCloudConnection
> ------------------------------------------------------------------
>
> Key: LIBCLOUD-256
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-256
> Project: Libcloud
> Issue Type: Bug
> Components: Compute
> Affects Versions: 0.11.2
> Environment: Centos 5.8, python 2.7,
> Reporter: Brian DeGeeter
> Original Estimate: 1m
> Remaining Estimate: 1m
>
> _get_auth_headers in VCloudConnnection raises and exception due to an integer 0 set as the Content-Length. The issues is resolved by setting the Content-Length to a string '0'.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[dev] [jira] [Commented] (LIBCLOUD-256) Content-length header causes
httplib exception in VCloudConnection
Posted by "Brian DeGeeter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LIBCLOUD-256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13494180#comment-13494180 ]
Brian DeGeeter commented on LIBCLOUD-256:
-----------------------------------------
+++ b/libcloud/compute/drivers/vcloud.py
@@ -325,7 +325,7 @@ class VCloudConnection(ConnectionUserAndKey):
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'
}
> Content-length header causes httplib exception in VCloudConnection
> ------------------------------------------------------------------
>
> Key: LIBCLOUD-256
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-256
> Project: Libcloud
> Issue Type: Bug
> Components: Compute
> Affects Versions: 0.11.2
> Environment: Centos 5.8, python 2.7,
> Reporter: Brian DeGeeter
> Original Estimate: 1m
> Remaining Estimate: 1m
>
> _get_auth_headers in VCloudConnnection raises and exception due to an integer 0 set as the Content-Length. The issues is resolved by setting the Content-Length to a string '0'.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[dev] [jira] [Resolved] (LIBCLOUD-256) Content-length header causes
httplib exception in VCloudConnection
Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LIBCLOUD-256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomaz Muraus resolved LIBCLOUD-256.
-----------------------------------
Resolution: Fixed
> Content-length header causes httplib exception in VCloudConnection
> ------------------------------------------------------------------
>
> Key: LIBCLOUD-256
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-256
> Project: Libcloud
> Issue Type: Bug
> Components: Compute
> Affects Versions: 0.11.2
> Environment: Centos 5.8, python 2.7,
> Reporter: Brian DeGeeter
> Original Estimate: 1m
> Remaining Estimate: 1m
>
> _get_auth_headers in VCloudConnnection raises and exception due to an integer 0 set as the Content-Length. The issues is resolved by setting the Content-Length to a string '0'.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira