Bug 215618

Summary: Double space in filename -> unable to add to the playlist when adding multiple files.
Product: [Applications] kfile Reporter: j
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: adaptee, grosser.meister.morti, nate, nhn
Priority: NOR Keywords: reproducible
Version: 4.10.1   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description j 2009-11-22 00:21:14 UTC
Version:           2.2.1 (using KDE 4.3.3)
OS:                Linux
Installed from:    Debian testing/unstable Packages

How to reproduce:
1. Rename two of your music files to (for example) "01  test.mp3" and "02  test.mp3" (note: double space)
2. Amarok->Playlist->Add Media, select both files, hit ok.
3. Nothing gets added to the playlist.

Expected behavior:
Both files get added to the playlist.

(Note: Adding files one by one seems to work.)
Comment 1 Mathias Panzenböck 2009-11-22 18:24:12 UTC
I guess this is yet another weird bug of the file selection dialog. E.g. try to open a (or several) files that contain two " (double quote).
Comment 2 Nikolaj Hald Nielsen 2009-11-22 19:15:53 UTC
This seems like an escaping bug upstream in KFileDialog

If I select one file named "01  Distant Activity-Adam Fielding.ogg" I get the
following path from KFileDialog:

[MainWindow] file: 
"file:///home/nhn/media/test%20media/01%20%20Distant%20Activity-Adam%20Fielding.ogg" 

If however I select this as one of 2 files, I get:

[MainWindow] file: 
"file:///home/nhn/media/test%20media/01%2520%20Distant%20Activity-Adam%20Fielding.ogg"

Something in the escaping of this path has obviously gone bad!
Comment 3 Myriam Schweingruber 2010-02-07 14:28:19 UTC
Is this still valid in Amarok 2.2.2 or current git? Or should I reassign that?
Comment 4 j 2010-02-07 15:57:38 UTC
Amarok 2.2.2 + KDE 4.3.4 here, it's still broken.
Comment 5 Myriam Schweingruber 2010-02-07 16:30:05 UTC
Reassigning
Comment 6 Nate Graham 2018-04-13 19:35:14 UTC
Works for me in KDE Frameworks 5.45.