[ 
https://issues.apache.org/jira/browse/LIBCLOUD-390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13757583#comment-13757583
 ] 

ASF subversion and git services commented on LIBCLOUD-390:
----------------------------------------------------------

Commit 08a79e4d17d694477194d2c957db0ea5f67e8648 in branch refs/heads/trunk from 
[~kami]
[ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=08a79e4 ]

Only send Content-Length: 0 even if "data" is None.

Fixes LIBCLOUD-390.

                
> driver.create_container gets a HTTP Error 411 with Azure Blobs driver
> ---------------------------------------------------------------------
>
>                 Key: LIBCLOUD-390
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-390
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Storage
>    Affects Versions: 0.12.3
>            Reporter: Olivier Grisel
>
> On current Windows Azure, the Content-Length header is required for container 
> creation requests. Currently we get the following error:
> {code}
>  [...]
>   File 
> "/Users/ogrisel/code/libcloud/libcloud/storage/drivers/azure_blobs.py", line 
> 499, in create_container
>     method='PUT', headers=headers)
>   File "/Users/ogrisel/code/libcloud/libcloud/common/base.py", line 617, in 
> request
>     connection=self)
>   File "/Users/ogrisel/code/libcloud/libcloud/common/base.py", line 93, in 
> __init__
>     raise Exception(self.parse_error())
>   File "/Users/ogrisel/code/libcloud/libcloud/common/azure.py", line 74, in 
> parse_error
>     driver=self)
> LibcloudError: <LibcloudError in <libcloud.common.azure.AzureResponse object 
> at 0x10cf8dc90> 'Unknown error Status code: 411.'>
> {code}
> I will soon push a fix in a branch on my github fork.

--
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

Reply via email to