Bug 307336

Summary: Filename is messed up when dropping file from Nepomuk searchresult into composer window
Product: [Applications] dolphin Reporter: Elias Probst <mail>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version: 2.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 4.10.5

Description Elias Probst 2012-09-24 18:09:40 UTC
When adding files from a Nepomuk search (e.g. from Dolphin) via drag'n'drop to a new mail, the filename contains the full URL which is URL encoded and all % signs are replaced by an underscore.

→ Open Dolphin
→ Click on search
→ Enter a searchterm
→ Open KMail
→ Compose a new mail
→ Drag'n'drop a file from the search results to the composer window
→ Select "Add file as attachment"

The name of the attached file looks like this:
file_3A_2F_2F_2Fhome_2Felias_2Fdmidecode.txt

When doing this with a file from a regular Dolphin view, the filename looks correct.
Comment 1 Laurent Montel 2012-09-25 06:02:13 UTC
I confirm it but for me it's not a kmail bug but a dolphin bug.
Comment 2 Emmanuel Pescosta 2013-06-24 09:12:23 UTC
Git commit c847aacf4c3f8e6bd9579d66078fde16510552ef by Emmanuel Pescosta.
Committed on 24/06/2013 at 09:11.
Pushed by emmanuelp into branch 'KDE/4.10'.

Use the target url of a item when creating the QMimeData in KFileItemModel::createMimeData.
FIXED-IN: 4.10.5
REVIEW: 111209

M  +1    -1    dolphin/src/kitemviews/kfileitemmodel.cpp

http://commits.kde.org/kde-baseapps/c847aacf4c3f8e6bd9579d66078fde16510552ef