Bug 157543

Summary: downloading using "save link as" and kget puts file in wrong place
Product: [Applications] konqueror Reporter: Stefano Crocco <stefano.crocco>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kde, l.appelhans, mat69, mtapankov, pete, sebastian.radish
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Stefano Crocco 2008-02-09 18:18:28 UTC
Version:           4.00.61 (KDE 4.0.61 >= 20080207) (using 4.00.61 (KDE 4.0.61 >= 20080207), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc
OS:                Linux (i686) release 2.6.24-gentoo

When I download a file using the "Save link as" context menu entry, with kget as download manager, the path and file name I enter in the dialog aren't used correctly to create the path where the file should be put. In particular, it seems that no slash is inserted between the path and the file name (actually, if I explicitly enter it, it's removed), so that the last directory in the path and the file name are merged together to give a wrong file name.

For example, if I choose the path /home/stefano/downloaded/test/ and the file name downloaded_file.pdf, the file is saved as /home/stefano/downloaded/testdownloaded_file.pdf

This problem doesn't happen if I don't enable kget as download manager or if I keep it enabled but download the file by clicking on it.
Comment 1 FiNeX 2008-02-10 23:15:35 UTC
Added Lukas on CC :-)
Comment 2 Peter Lewis 2008-08-04 12:13:34 UTC
I can confirm this behaviour on 4.1.0 Kubuntu packages. Probably the same thing as in bug #167526.
Comment 3 Alain Knaff 2008-09-10 12:04:19 UTC
I can confirm this behaviour on 4.1.0 Fedora Core 9 packages.
Comment 4 Dario Andres 2008-12-05 00:08:13 UTC
*** Bug 168147 has been marked as a duplicate of this bug. ***
Comment 5 Rettich 2009-07-14 21:35:19 UTC
I have a very similar problem with KDE4.3RC2

But instead of saving the file under /home/stefano/downloaded/testdownloaded_file.pdf, I would get a popup complaining about the fact, that /home/stefano/downloaded/test already exists and that KGet wants a new name instead of "test".

So it seems that KGet ignore the filename completely and takes the last directory for the filename.
Comment 6 Bartemius Crouch 2009-07-24 17:31:21 UTC
The same thing as in bug #201308.
Comment 7 Matthias Fuchs 2010-06-30 15:14:38 UTC
I can't reproduce this with 4.4.5
Please reopen it if you still experience this issue with 4.4.4 or a newer version.
Comment 8 Alain Knaff 2010-07-09 17:18:23 UTC
Works ok with 4.4.4, thanks.