Bug 164572

Summary: Deletes all files in home-folder except folders
Product: [Applications] kget Reporter: Pascal d'Hermilly <pascal>
Component: generalAssignee: KGet authors <kget>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Pascal d'Hermilly 2008-06-21 01:30:45 UTC
Version:            (using KDE 4.0.80)
Installed from:    Ubuntu Packages
OS:                Linux

I recently used kget to download an opensuse cd-image through bittorrent. 
To make a long story short. It finished and I deleted the .torrent file while kget was still runnning. Don't know if it was seeding or anything. However, when I selected the transfer in kget and clicked "Delete Selected" it wiped every file in my homefolder except files with a dot in front like .bashrc and folders. Also it closed kget.
Being chocked that I was I tried looking for the files... I'm not able to find them again. They weren't moved to the trashcan.
So I checked if I could recreate it. I created a text file in my homefolder and opened dolphin and kget. Kget still found the image that I had downloaded. I pressed "Delete selected" and it wiped the files again.
Then I recreated the original .torrent file from the trashcan, opened kget and clicked "delete selected". Kget did as it should and deleted the .torrent file. 
I haven't been able to reconstruct the happening afterwards. But then again, I haven't let kget finish the download.. as it is 680 Mb.

Thank god it didn't wipe the subfolders as well. I hope very much that you are able to get rid of this bug, but remember to backup before trying to recreate ;-)
Comment 1 Lukas Appelhans 2008-06-21 09:26:44 UTC
Yes, we had some problems with this in pre-Beta 1 (?), but I fixed that temporary...
This is only happening with torrent-downloads btw

Lukas

PS: I will leave that bug here open, to push the _real_ fix...
Comment 2 Pascal d'Hermilly 2008-06-21 14:34:15 UTC
ok.
I used beta 1 packages from kubuntu. 
Comment 3 Lukas Appelhans 2008-06-22 18:13:45 UTC
SVN commit 823131 by lappelhans:

Initialize the tmp-dir, even if the torrent has not been initialized...

BUG:164572


 M  +3 -5      bttransfer.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=823131