Bug 330463

Summary: Create new symbolic link with blanks in pathname failes
Product: [Unmaintained] kio Reporter: Peter Häring <p.haering>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: adawit, frank78ac
Priority: NOR    
Version: 4.10.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 4.12.3
Sentry Crash Report:

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