"Verify Local Data" does not check file size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
transmission (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: transmission
Description of the problem:
Transmission does not check that a torrent is "small enough" when it is fully downloaded or if it "Verify Local Data" is used. This means that junk on the end of a file is not fixed.
Steps to reproduce:
1. Run
transmission http://
(or whatever the "download via BitTorrent" link on http://
2. Follow the steps to let BitTornado-
3. Run
md5sum ~/Downloads/
4. Run
truncate --size=+1k ~/Downloads/
5. Press the right mouse button over BitTornado-
6. Wait for the verification to finish and then run
md5sum ~/Downloads/
Expected results:
The md5sum values returned at step 3 and step 6 to be the same (assuming the file downloaded correctly in the first place :).
Actual results:
The md5sum values returned at step 3 and step 6 are different.
Additional information:
This situation is rare but it really can occur due to bugs elsewhere in the system (see https:/
Version information:
Ubuntu 10.04
transmission-gtk 1.93-0ubuntu0.
Sitsofe, thanks for reporting this.
What, in your opinion, should Transmission do in this odd case?
Should the file be thrown out and restarted? That seems like it could be a curse worse than the disease.
Should Transmission resize the file to the proper size? That seems bad, too.
Unless there's a realistic scenario where this will happen, it might be better to leave the behavior as-is.