You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by "Tomaz Muraus (JIRA)" <ji...@apache.org> on 2012/07/20 03:33:34 UTC

[dev] [jira] [Resolved] (LIBCLOUD-228) Atmos driver's upload_object_via_stream is broken when the object does not already exist

     [ https://issues.apache.org/jira/browse/LIBCLOUD-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomaz Muraus resolved LIBCLOUD-228.
-----------------------------------

    Resolution: Fixed
      Assignee: Tomaz Muraus

Merged, thanks!
                
> 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
>         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