Bug 330463 - Create new symbolic link with blanks in pathname failes
Summary: Create new symbolic link with blanks in pathname failes
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.10.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-27 13:11 UTC by Peter Häring
Modified: 2014-02-27 01:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.12.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Häring 2014-01-27 13:11:13 UTC
I want to create a symbolic link to a file or directory.
I use "Create New -> Basic link to file or directory"
In the popup window "Create symlink" I enter a file name in the upper field.
In the lower field, I type in the path, were the symbolic links should point to;
the path is easily completed while typing to existing paths. My path has blanks in it.
I press "Ok". A symbolic link is created, where the blanks are replaced by "%20".
The link is created correctly, when I use the "Open file dialog"-button just right of the lower input field.

Example: the link should point to ../example directory/example file.
With the path entered in the lower field ls -l shows:
lrwxrwxrwx ....... example file -> ../example%20directory/example%20file
instead of
lrwxrwxrwx ....... example file -> ../example directory/example file

Reproducible: Always
Comment 1 Frank Reininghaus 2014-01-27 15:28:02 UTC
Thanks for the bug report. The "Create New..." menu is part of kdelibs. The individual entries are possibly from somewhere else - AFAIK, anyone can add entries to this menu by installing a .desktop file to the right place in the file system. Therefore, I don't know what the appropriate 'product' for this bug report is.
Comment 2 David Faure 2014-02-26 06:47:16 UTC
Git commit 3d9b6142291a07db98b7ac3db06954d07a00db7a by David Faure.
Committed on 26/02/2014 at 06:45.
Pushed by dfaure into branch 'KDE/4.12'.

More KUrl tests, the relative-url stuff is for bug 330463

M  +9    -0    kdecore/tests/kurltest.cpp

http://commits.kde.org/kdelibs/3d9b6142291a07db98b7ac3db06954d07a00db7a
Comment 3 Dawit Alemayehu 2014-02-27 01:08:24 UTC
Git commit 9fd3e380f3f1967b8ba01c5a248b6cddf79450a7 by Dawit Alemayehu.
Committed on 26/02/2014 at 06:22.
Pushed by adawit into branch 'KDE/4.12'.

Do not use encoded URL when creating relative symlinks.
FIXED-IN: 4.12.3
REVIEW: 116073

M  +1    -1    kfile/knewfilemenu.cpp

http://commits.kde.org/kdelibs/9fd3e380f3f1967b8ba01c5a248b6cddf79450a7