Bug 173514 - torrents always fail the first time
Summary: torrents always fail the first time
Status: RESOLVED DUPLICATE of bug 163965
Alias: None
Product: ktorrent
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-25 14:58 UTC by Oliver Putz
Modified: 2008-10-27 12:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Putz 2008-10-25 14:58:49 UTC
Version:           3.1.3 (using 4.1.69 (KDE 4.1.69 (KDE 4.2 >= 20081009)), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc
OS:                Linux (i686) release 2.6.26-gentoo-r1

Steps to reproduce:

1) Open ktorrent
2) Go to File->Open URL and past a torrent url (e.g. http://beta.legaltorrents.com/get/217-the-just-so-stories---rudyard-kipling)
3) Hit ok
4) Confirm the place where the torrents are supposed to be stored (for me it is a smb share mounted under /home/oliver/remote/Downloads/)
5) See the following error message:

Cannot create directory //home/oliver/remote/Downloads/Librivox - The Just-So Stories - Rudyard Kipling/Content: Access denied to //home/oliver/remote/Downloads/Librivox - The Just-So Stories - Rudyard Kipling/Content.

Remark:

If I now redo the above steps, I can save it and the download will start just fine. Note that the torrent URL will already be saved in the open url dialog (which I must not alter in order to make it work the second time). If I was to enter a different url in that dialog, it would fail again.
Comment 1 Joris Guisson 2008-10-26 11:26:55 UTC
We can't do much about this, if the file system returns back access denied when creating the directory to download to, we give up. 

It is very strange that it succeeds the second time, but what more can we do ? You could say, try again, but that would just be working around a bug in a file system, and we are not going to do that.

This looks like a samba bug, or something wrong with the server sharing that directory. Contact the samba project.
Comment 2 Oliver Putz 2008-10-26 13:56:02 UTC
Hi! Thanks first of all for the pointer towards the samba project, but I think that is not the problem... I just tried the procedure above with my local (reiserfs) filesystem, and there I run into the same problem... For example:

Cannot create directory /home/oliver/local/Downloads/Free_Range_Studios_-_Story_of_Stuff/: Could not make folder /home/oliver/local/Downloads/Free_Range_Studios_-_Story_of_Stuff/.

Is there some ktorrent log from which I can find out what exactly is going wrong? (perhaps some kio problem?)
Comment 3 Oliver Putz 2008-10-26 14:04:29 UTC
Ok, here some more information: The problem only occurs when I try to store the download in a folder that does not exists.

E.g.: Say /home/oliver/Download/ exists, then downloading to /home/oliver/Download/ works. However, if I would change the path to say /home/oliver/Download2/, it would fail because the subfolder Download2 does not exist. So is it possible that ktorrent lacks the right / does not try to create the "toplevel" directory under which it tries to store the torrent data itself?
Comment 4 Joris Guisson 2008-10-27 12:33:23 UTC
Current development version already asks you if you want to create the directory if it doesn't exit. So we can close this as a duplicate of 163965.


*** This bug has been marked as a duplicate of bug 163965 ***
Comment 5 Joris Guisson 2008-10-27 12:34:11 UTC
Oops: exit -> exist