Bug 193878

Summary: Files with names containing square brackets are dragged from the playlist to a file manager window incorrectly
Product: [Applications] amarok Reporter: Konstantin <b.m.kast>
Component: PlaylistAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: normal CC: ashl1future, edward.hades, ivan.stetsenko, kusi
Priority: NOR    
Version: 2.3-GIT   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Konstantin 2009-05-24 13:39:40 UTC
Version:           2.0.96 (using KDE 4.2.85)
OS:                Linux
Installed from:    SuSE RPMs

When dragging a file containing a square bracket in its name to Dolphin (or Konqueror, or Krusader) the name remains url-encoded. The file manager

Steps to reproduce:
1. Find a folder in the music collection with a name containing brackets or create a new one (e.g. 'Unknown Artist - Unknown Album [2009]') and add some media files to it
2. Add this folder to the playlist
3. Open Dolphin or Konqueror, navigate to some temporary folder
4. Try dragging any of the newly added tracks to the file manager window
It will complain that the file named '/path/to/Unknown Artist - Unknown Album %5B2009%5D/01. Untitled Track.mp3' does not exist.

Expected behavior:
%5B and %5D are expected to be decoded to [ and ].
Comment 1 Alexey Shildyakov 2009-06-25 14:42:41 UTC
related to this: https://bugs.kde.org/show_bug.cgi?id=189527
Comment 2 Myriam Schweingruber 2009-06-25 16:46:02 UTC
Konstantin, 2.0.96 is outdated, you should upgrade to either 2.1 or 2.1.1
Comment 3 Konstantin 2009-07-05 14:44:42 UTC
Amarok 2.1.1 (KDE 4.2.95) - same sympthoms.
Comment 4 Myriam Schweingruber 2009-07-30 18:51:53 UTC
*** Bug 196255 has been marked as a duplicate of this bug. ***
Comment 5 Myriam Schweingruber 2009-07-30 18:52:49 UTC
Can somebody confirm this?
Comment 6 Myriam Schweingruber 2009-08-11 10:41:23 UTC
Confirmed with current 2.2-git
Comment 7 Myriam Schweingruber 2009-08-13 01:18:30 UTC
*** Bug 203638 has been marked as a duplicate of this bug. ***
Comment 8 Ivan Stetsenko 2009-08-13 01:43:43 UTC
Just my five pence - this bug is observed on 2.1.1... Really annoying
Comment 9 Myriam Schweingruber 2009-08-13 10:07:00 UTC
(In reply to comment #8)
> Just my five pence - this bug is observed on 2.1.1... Really annoying

And it is still there in 2.2-GIT

I wonder if it is really a problem of Amarok or if it is a problem with the file manager...
Comment 10 Edward Hades 2009-08-14 10:41:05 UTC
Fixed by commit 3b90916e0ed1eaa00addabd48321f46fb7cdf393
Author: Edward Hades <edward.hades@gmail.com>
Date:   Fri Aug 14 12:23:27 2009 +0400

    Fixed the dolphin drag and drop problem.

    Looks like converting a URL back and forth between QString and QUrl
    enabled an excess layer of urlencoding. Should not break something, but
    may, of course.

    BUG: 193878

 ChangeLog              |    2 ++
 src/AmarokMimeData.cpp |    6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)