Bug 343380 - Invalid path is passed to the application when opening a file which filename containing Unicode character 'IDEOGRAPHIC SPACE' (U+3000) in Dolphin File Manager
Summary: Invalid path is passed to the application when opening a file which filename ...
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.14.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-27 17:41 UTC by V字龍(Vdragon)
Modified: 2015-02-02 23:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.14.6


Attachments
File that can reproduce bug (2.85 MB, application/pdf)
2015-01-27 17:42 UTC, V字龍(Vdragon)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description V字龍(Vdragon) 2015-01-27 17:41:13 UTC
Refer to reproduce steps.

Reproducible: Always

Steps to Reproduce:
1. Name a PDF file to contain Unicode character 'IDEOGRAPHIC SPACE' (U+3000) " "
2. Open the PDF file using Okular

Actual Results:  
File fails to open with "Could not open <file path>" error

Expected Results:  
File opens normally
Comment 1 V字龍(Vdragon) 2015-01-27 17:42:17 UTC
Created attachment 90708 [details]
File that can reproduce bug
Comment 2 V字龍(Vdragon) 2015-01-27 18:27:16 UTC
Found that the issue is actually on Dolphin instead, Okular just get the wrong file path.
Comment 3 V字龍(Vdragon) 2015-01-27 18:41:33 UTC
## UPDATE of "Actual results":
### If Unicode character 'IDEOGRAPHIC SPACE' (U+3000) appears at the start of a filename (e.g. " test.pdf")
Application get the file path without Unicode character 'IDEOGRAPHIC SPACE' (U+3000) (e.g. "test.pdf"

### If Unicode character 'IDEOGRAPHIC SPACE' (U+3000) appears at the middle of a filename (e.g. "te st.pdf"
Application get "te" and "st.pdf" two arguments and fails twice

### If Unicode character 'IDEOGRAPHIC SPACE' (U+3000) appears at the end of a filename (e.g. "test.pdf "
Application get the file path without Unicode character 'IDEOGRAPHIC SPACE' (U+3000) (e.g. "test.pdf"
Comment 4 V字龍(Vdragon) 2015-01-27 19:41:39 UTC
I noticed that this issue is also reproducible with kde-open, but I'm not sure which KDE product it belongs to(In Kubuntu Backports the command is packaged in kde-runtime)
Comment 5 Albert Astals Cid 2015-01-28 23:06:07 UTC
Yeah it's not an okular bug, but i'm working on a fix anyways