libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LIBCLOUD-1039) Cloudfiles storage download_object_as_stream results in HttpLibResponseProxy error.
Date Tue, 28 May 2019 13:36:00 GMT

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

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

Commit 494cac548d9f92338c403c2cb76458bdf79530da in libcloud's branch refs/heads/trunk from
Matt Seymour
[ https://gitbox.apache.org/repos/asf?p=libcloud.git;h=494cac5 ]

Fixes LIBCLOUD-1039 - cloudfiles download_object_as_stream

When downloading an object as a stream `download_object_as_stream`
in storage/drivers/cloudfiles.py a generator object should be
returned. Currently a rerquest/response object is returned
in resulting in a HttpLibResponseProxy error.

This commit alters the callback_kwargs to use a
requests/response.iter_content resulting in an iterator object
being returned.


> Cloudfiles storage download_object_as_stream results in HttpLibResponseProxy error.
> -----------------------------------------------------------------------------------
>
>                 Key: LIBCLOUD-1039
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-1039
>             Project: Libcloud
>          Issue Type: Bug
>         Environment: All,
>  
> Specific instance: Linux (ubuntu), Python3.5 and Python3.6, libcloud version 2.4.0
>            Reporter: matt seymour
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> When calling the download_object_as_stream method in the CLoudfiles driver a HttpLibResponseProxy
error is raised as the resulting (returning) object is not a generator.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message