Bug 307336 - Filename is messed up when dropping file from Nepomuk searchresult into composer window
Summary: Filename is messed up when dropping file from Nepomuk searchresult into compo...
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 2.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-24 18:09 UTC by Elias Probst
Modified: 2013-06-24 09:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.10.5


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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