https://bugs.kde.org/show_bug.cgi?id=422245
Bug ID: 422245 Summary: lose data upon failed integrity check of ignored files Product: ktorrent Version: 5.1 Platform: Kubuntu Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: joris.guis...@gmail.com Reporter: matthieu.ver...@gmail.com Target Milestone: --- Created attachment 128922 --> https://bugs.kde.org/attachment.cgi?id=128922&action=edit Torrent & data to reproduce the bug SUMMARY When executing integrity check, having a missing file although it is ignored completely ruins the data by failing the integrity check and considering all (non ignored) files at 0% too, thus downloading everything again. STEPS TO REPRODUCE 1. Download the attachment, it contains a folder of 3 files (a, b, and c) and a torrent of this folder 2. Run the torrent in ktorrent and store the download somewhere else 3. Copy the three files of the folder into the download folder to complete them 4. Run the integrity check in ktorrent -> 100% OK 5. Unselect file a to ignore its download 6. Run the integrity check in ktorrent -> 100% OK 7. Remove file a from the download folder 8. Run the integrity check in ktorrent OBSERVED RESULT - The last check fails with a missing file message - It resets the completion of the whole torrent to 0%, including the files still there (although the data seems to be there) EXPECTED RESULT - The last check should be successful because the missing file is not supposed to be downloaded (it has been unselected) - The torrent completion should not be reset to 0% for the available files SOFTWARE/OS VERSIONS Kubuntu 20.04 Linux (x86_64) release 5.4.0-33-generic ADDITIONAL INFORMATION The context motivating this use case is a torrent with many or several big files. Once the files are downloaded, the user may want to move them elsewhere manually. If the torrent is not at 100% but some files are already complete (because some priorities were set), the user may then unselect these files in the download list and move them. The user would expect the unselected files to not be checked or downloaded again. The issue is worsen with automatic integrity check after download: the check fails, thus resetting everything to 0%, thus restarting the download from scratch immediately. Once it completes, it automatically runs the integrity check, fails again (the missing file was still unselected, so it has not been downloaded), and the download restarts from 0% again in an infinite loop. -- You are receiving this mail because: You are watching all bug changes.