Bug 248438

Summary: double Path Delimeter if *.torrent is opened with ktorrent
Product: [Applications] ktorrent Reporter: JohnML <jmlandmesser>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED DUPLICATE    
Severity: crash CC: jmlandmesser
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: torrent with underscore in filename

Description JohnML 2010-08-19 22:50:41 UTC
Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

if you try to open a saved *.torrent with ktorrent, ktorrent tries to create a Folder as /hom/john1//foo.torrent ( double path delimiter // )

that is a showstopper for ktorrent, User can't correct that manual.

Reproducible: Always

Steps to Reproduce:
try to open a *.torrent file

Actual Results:  
ktorrent isn't usable anymore

Expected Results:  
open and download the *.torrent

OS: Linux (i686) release 2.6.34-0.slh.11-sidux-686
Compiler: cc
Comment 1 Joris Guisson 2010-08-19 22:55:43 UTC
Version ?
Comment 2 JohnML 2010-08-19 22:59:31 UTC
version of ktorrent is 4.0.2

p.s. the second path delimiter is added after user klicks the open button !!
Comment 3 Joris Guisson 2010-08-20 07:53:27 UTC
Last time I tried opening torrents was not a problem, so what exactly is going on ? Where is this double path delimiter added ?
Comment 4 JohnML 2010-08-20 11:06:09 UTC
Created attachment 50770 [details]
torrent with underscore in filename

open it with ktorrent and see what happens to the underscores in fileopendialog

"/sabayon/iso/Sabayon_Linux_5.3_amd64_K"
Comment 5 JohnML 2010-08-20 11:11:23 UTC
funny, not all underscores a replaced with slash, but why??
Comment 6 JohnML 2010-08-20 11:38:14 UTC
no, it's not a problem with the filename:
rename the file(!!) to test.torrent and you have the same problem.

I think it's not a problem of ktorrent but of the name that comes out of the torrent.

p.s. I know just nothing about torrents, so i might be wrong :-((

i downloaded the torrent from http://tracker.sabayon.org/

Perhaps a gentoo-ist does not kow how to treat torrents? :-;
Comment 7 Joris Guisson 2010-08-21 09:37:47 UTC
This has already been fixed

*** This bug has been marked as a duplicate of bug 244418 ***