Bug 451005

Summary: ktorrent infinitely downloads to read only device
Product: [Applications] ktorrent Reporter: Andrew <travneff>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 21.12.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Andrew 2022-03-01 15:31:19 UTC
SUMMARY
Some logic is broken when trying to download part of torrent to readonly device.

STEPS TO REPRODUCE (some might be not really needed)
1. Add torrent with multiple files (size of each is 400..500 MB for my case). Download couple of them to separate partition.
2. Exit ktorrent and remount that partition as read-only.
3. Open ktorrent again and select couple of more files for downloading.

OBSERVED RESULT
ktorrent consumes a lot of network traffic downloading files infinitely (?) with small progress not increasing.

EXPECTED RESULT
ktorrent should display error telling that partition is read only.

SOFTWARE/OS VERSIONS
All software from Linux Fedora 35 repos:
ktorrent 21.12.2
Qt 5.15.2 (build with 5.15.2)
KDE Frameworks 5.91.0
plasma-workspace-libs-5.24.2-1.fc35.x86_64