Bug 470368

Summary: Bookmarks to PDF doc on smb shared folder do not open the document
Product: [Applications] okular Reporter: Paul Worrall <p.r.worrall>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Paul Worrall 2023-05-28 15:00:22 UTC
SUMMARY
***
If you create a bookmark in a PDF that is stored on a remote SMB-shared folder, and then close the PDF, subsequently clicking on the bookmark does not reopen the PDF.  Bookmarks to local PDF docs do reopen the file.
***


STEPS TO REPRODUCE
1. Open a PDF file on an SMB share (e.g. smb://server.local/share/myfile.pdf)
2. Add a bookmark to the document
3. Close the document
4. Click on the bookmark

OBSERVED RESULT
Nothing happens

EXPECTED RESULT
The PDF file is opened and scrolled to where the bookmark was created

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Bookmarks to local files (e.g. file:///home/user/myfile.pdf) do reopen the file
Comment 1 Paul Worrall 2023-09-17 18:46:33 UTC
Additional info:

I've noticed that the error message says "Could not open file://<current directory>/smb://<server>/<path>"

i.e. it seems to be prepending the current directory (the last one navigated to in the file open dialog) to the smb address