Bug 504681 - PDF name which starts with '#' opens a wrong file (an image)
Summary: PDF name which starts with '#' opens a wrong file (an image)
Status: RESOLVED DUPLICATE of bug 495839
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (other bugs)
Version First Reported In: unspecified
Platform: Other Other
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-22 22:00 UTC by dorla.hutch
Modified: 2025-05-27 04:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
an irrelevant PDF file (15.80 KB, application/pdf)
2025-05-22 22:00 UTC, dorla.hutch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dorla.hutch 2025-05-22 22:00:18 UTC
Created attachment 181663 [details]
an irrelevant PDF file

SUMMARY

The weirdest thing I've seen. When a PDF is opened, starting with '#' in its name, it reliably opens an unrelated image file in the same folder instead. If the image file is removed, it will open the PDF normally. The effect is independent of the image file and the PDF content. You can put any JPEG in the same folder and see.

STEPS TO REPRODUCE
1. Rename PDF to something which starts with '#'
2. put an image in the same folder (the name really doesn't matter, not even the file extension). Note: the folder can be totally empty.
3. Open the PDF

OBSERVED RESULT

The image is shown. The file size is depicted as 0 bytes.

EXPECTED RESULT

Shows the actual PDF file and correct meta data.

SOFTWARE/OS VERSIONS
Windows: Windows 11 Pro, Build 10.0.26100
Okular Version: 23.08.1
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

Not tested under Linux. Affects PDF files, but not for example when opening image files.
Comment 1 John Kizer 2025-05-27 04:16:33 UTC
Hi - merging this in with the existing report for this issue. Thanks!

*** This bug has been marked as a duplicate of bug 495839 ***