jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Gaul (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCLOUDS-1367) Blob.getPayload.openStream() is inconsistent across implementations
Date Sat, 10 Mar 2018 19:07:00 GMT

    [ https://issues.apache.org/jira/browse/JCLOUDS-1367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16394302#comment-16394302

Andrew Gaul commented on JCLOUDS-1367:

Real blobstores stream the blob payload from the server; if you want two {{InputStream}}
you need to call {{getBlob}} twice.  The testing blobstores return a ByteSource which allows
multiple streams; we should change this to follow real blobstores more closely.

> Blob.getPayload.openStream() is inconsistent across implementations
> -------------------------------------------------------------------
>                 Key: JCLOUDS-1367
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1367
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-blobstore
>            Reporter: Rishab Manocha
>            Priority: Minor
> Blob.getPayload.openStream() returns a new InputStream object if the payload is a sub
type of  InputStream but returns the same stream if the payload is of type InputStream.
> It would be desirable to have it return a new Stream object which can be read independently.

This message was sent by Atlassian JIRA

View raw message