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-1268) Calculate and include SHA-1 hash at the end of a B2 upload
Date Sun, 23 Apr 2017 03:52:04 GMT

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

Andrew Gaul commented on JCLOUDS-1268:
--------------------------------------

>From a high-level you understand the task at hand, although we need to figure out _how_
to modify the Payload.  {{PayloadEnclosingImpl.setPayload}} closes the previous payload, so
we cannot simply concatenate them.  We also want to allow streaming, so we can't buffer all
this in-memory.

> Calculate and include SHA-1 hash at the end of a B2 upload 
> -----------------------------------------------------------
>
>                 Key: JCLOUDS-1268
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1268
>             Project: jclouds
>          Issue Type: Improvement
>          Components: jclouds-blobstore
>    Affects Versions: 2.0.1
>            Reporter: Andrew Gaul
>            Priority: Minor
>              Labels: b2
>
> B2 removed the need to calculate the SHA-1 hash before uploading a file, allowing streaming.
 Currently jclouds uploads files without a hash, although B2 also supports calculating the
hash while uploading then including the SHA-1 at the end via {{X-Bz-Content-Sha1: hex_digits_at_end}}:
 
> https://www.backblaze.com/b2/docs/uploading.html
> Supporting this requires some changes to jclouds to allow modifying the Payload to emit
the hash at the end of the transfer.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message