jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michelle Zhang (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 00:12:04 GMT

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

Michelle Zhang commented on JCLOUDS-1268:

Hi Andrew, for this issue do you mean we need to calc the sha1 hashsum when user doesn't provide
it? https://github.com/jclouds/jclouds-labs/blob/master/b2/src/main/java/org/jclouds/b2/binders/UploadFileBinder.java#L38
Then I modify the payload and add the hash sum to the end?

> 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

View raw message