[
https://issues.apache.org/jira/browse/LIBCLOUD-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benno Rice updated LIBCLOUD-228:
--------------------------------
Attachment: atmos_upload_object_via_stream.patch
> 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
> 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:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira