[tahoe-lafs-trac-stream] [tahoe-lafs] #1529: corrupted filesize in CHK filecap causes unexpected "bad hash error"
tahoe-lafs
trac at tahoe-lafs.org
Mon Mar 12 19:08:08 UTC 2012
#1529: corrupted filesize in CHK filecap causes unexpected "bad hash error"
-------------------------------+---------------------
Reporter: warner | Owner:
Type: defect | Status: new
Priority: major | Milestone: soon
Component: code-encoding | Version: 1.9.0a1
Resolution: | Keywords: error
Launchpad Bug: |
-------------------------------+---------------------
Changes (by davidsarah):
* keywords: => error
Comment:
Replying to [comment:3 warner]:
> The "new" immutable downloader currently ignores all the share fields it
doesn't need, including the UEB's filesize field. In this case, I think
it's better that the downloader explicitly (one might say gratuitously)
compares the UEB's filesize against the filecap's filesize and throw
{{{FilecapFilesizeMismatchError}}}, rather than pretending that the UEB's
filesize is a mistake and attempting to decode the file with the filecap's
filesize (which will result in the unhelpful ciphertext_hash_tree error in
this ticket). Think of it as bringing the error forward to a better place.
+1.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1529#comment:4>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list