[
https://issues.apache.org/jira/browse/LIBCLOUD-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tomaz Muraus updated LIBCLOUD-228:
----------------------------------
Fix Version/s: 0.11.0
> Atmos driver's upload_object_via_stream is broken when the object does not
> already exist
> ----------------------------------------------------------------------------------------
>
> Key: LIBCLOUD-228
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-228
> Project: Libcloud
> Issue Type: Bug
> Components: Storage
> Affects Versions: 0.10.1
> Reporter: Benno Rice
> Assignee: Tomaz Muraus
> Fix For: 0.11.0
>
> Attachments: atmos_upload_object_via_stream.patch
>
>
> Atmos doesn't like PUT requests being sent when the object has not already
> been created. The Atmos driver's implementation of upload_object_via_stream
> was using PUT requests with Range headers unconditionally.
> The attached patch gets the driver to first check if the object exists. If
> not, the first chunk is sent as a POST request in order to create the object.
> If not, the first chunk is sent as a PUT with no Range header. Subsequent
> chunks are all sent as PUT requests with Range headers as before.
> This has been tested against Ninefold's Atmos service.
--
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