[Cyberduck-trac] [Cyberduck] #9733: Add SHA1 or other verification for BackBlaze B2
Cyberduck
trac at trac.cyberduck.io
Sun Oct 16 19:27:42 UTC 2016
#9733: Add SHA1 or other verification for BackBlaze B2
------------------------------+-------------------------
Reporter: cyborgduck | Owner: dkocher
Type: defect | Status: assigned
Priority: normal | Milestone: 6.0
Component: b2 | Version: 5.1
Severity: normal | Resolution:
Keywords: sha backblaze b2 | Architecture:
Platform: |
------------------------------+-------------------------
Comment (by dkocher):
We do include the checksum in every `PUT` request. A sample request is
{{{
Date: Sun, 16 Oct 2016 19:20:09 GMT
POST /b2api/v1/b2_upload_file/caed09e66bf60e3a556e0d10/c001_v0001033_t0025
HTTP/1.1
X-Bz-Content-Sha1: 63e5fa074c55e34e430a6ac7482f299edfec0769
Content-Type: image/jpeg
X-Bz-File-Name: IMG_5562.jpg
Content-Length: 3474026
Host: pod-000-1033-07.backblaze.com
Connection: Keep-Alive
User-Agent: Cyberduck/5.2.0.21187 (Mac OS X/10.12) (x86_64)
Accept-Encoding: gzip,deflate
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
Content-Type: application/json;charset=UTF-8
Content-Length: 401
Date: Sun, 16 Oct 2016 19:20:14 GMT
}}}
The checksum is calculated in `B2SingleUploadService#upload` and included
in the request in `B2WriteFeature#write`. Currently we do not check the
SHA1 of the response.
--
Ticket URL: <https://trac.cyberduck.io/ticket/9733#comment:6>
Cyberduck <https://cyberduck.io>
Libre FTP, SFTP, WebDAV, S3 & OpenStack Swift browser for Mac and Windows
More information about the Cyberduck-trac
mailing list