Bug 421421 - Pound sign in filename or directory makes Okular unable to read the file
Summary: Pound sign in filename or directory makes Okular unable to read the file
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.9.2
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-12 16:32 UTC by AdJ
Modified: 2020-05-15 21:38 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot (97.77 KB, image/png)
2020-05-13 06:51 UTC, AdJ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AdJ 2020-05-12 16:32:14 UTC
When one of the directorys begins with a pound, it reads the overall content of the parent directory.

When a filename contains a pound it displays unable to open file.
Comment 1 Albert Astals Cid 2020-05-12 17:14:05 UTC
What do you mean with "it reads the overall content of the parent directory." ?
Comment 2 AdJ 2020-05-13 06:51:05 UTC
For example for a folder located in my Desktop parent folder :

If I prefix a folder by #  and I try to read a PDF file located in this folder, it opens all the readable content of the parent folder (the Desktop and it's other child folders.)

In my case all .png files were read.
Comment 3 AdJ 2020-05-13 06:51:53 UTC
Created attachment 128414 [details]
Screenshot
Comment 4 Albert Astals Cid 2020-05-13 21:41:27 UTC
Can't reproduce on Linux.

Adding the Windows folks
Comment 5 Jack 2020-05-13 23:01:19 UTC
Edited the subject (pond -> pound sign) to reflect the problem.  Perhaps an explicit "#" in the subject would be better?

I'd also ask whether the problem is only for a leading # in the file name or can it be anywhere?
Comment 6 AdJ 2020-05-15 21:38:15 UTC
Hello,

No this behavior occur only with a leading # in the folder name.

All my other tests showed that for any other occurrence of # in the path make the file unreadable by Okular (error message).