[Cyberduck-trac] [Cyberduck] #9734: B2: Upload/Sync - Check fileLength if there is no SHA1 in response

Cyberduck trac at trac.cyberduck.io
Sun Oct 16 17:35:11 UTC 2016


#9734: B2: Upload/Sync - Check fileLength if there is no SHA1 in response
----------------------------+-----------------
    Reporter:  cyborgduck   |      Owner:
        Type:  enhancement  |     Status:  new
    Priority:  normal       |  Milestone:
   Component:  b2           |    Version:  5.1
    Severity:  normal       |   Keywords:  b2
Architecture:               |   Platform:
----------------------------+-----------------
 '''What is the idea about:'''[[br]]
 Made a ticket recently (#9733), regarding SHA1 verification.[[br]][[br]]

 But, there is no SHA1 for large files.[[br]][[br]]

 '''Implementation:''' [[br]]
 0) Ask BackBlaze dev support about what is a '''LARGE FILE'''.[[br]]Maybe
 CyberDuck already has a limit, and we know, or even better, we define
 it.[[br]]
 See: [https://www.backblaze.com/b2/docs/large_files.html][[br]][[br]]
 1) '''IF''' the localfile is '''SMALLER''' than the '''LARGE_FILE''' size,
 CALCULATE our SHA1 sum. This is a MUST, first step!

 2) Submit our SHA1 properly, check if the uploaded file has our
 SHA1.[[br]]

 3) '''IF''' our localfile is '''BIGGER''' than '''LARGE FILE''': Get
 fileLength! We already have this, it's "filelength()" of File, in
 Java.[[br]][[br]]
 4) Store this length, do the upload, then check the uploaded file's length
 with '''get_file_info'''. But maybe we get this back in the
 response.[[br]]
 [[br]]

 ORDER depends on Upload/Download.[[br]][[br]]

 Ask away!

--
Ticket URL: <https://trac.cyberduck.io/ticket/9734>
Cyberduck <https://cyberduck.io>
Libre FTP, SFTP, WebDAV, S3 & OpenStack Swift browser for Mac and Windows


More information about the Cyberduck-trac mailing list