I have a file (PDF, but I don't believe that's relevant) on a network drive. The drive is an SMB (permanent, but soft, via /etc/fstab) mount, which appears on a mount point, so it has a direct, normal form path, e.g. /mydrive/a/b/x.pdf
If I open the file manager, navigate to that directory, and double click it, Okular (which I configured as default for pdf) reports:
Could not open file:///wdmycloud/WorkOrders/2023-01-09-Intuit-FunctionalJava.pdf
If I right click and select open with, and go with the regular Document Viewer, it reports:
Unable to open document “file:///wdmycloud/WorkOrders/2023-01-09-Intuit-FunctionalJava.pdf” ... PDF document is damaged.
However, if I start Okular and use File->Open, and navigate to this file, it opens just fine. The same does not work with Document Viewer.
Also, if I copy it to a local path, e.g. my Desktop, and double click it, it opens just fine from there (so the document really is not damaged, and the data is 100% readable from the remote location, but the problem is some artifact of the remote mount that is troublesome to whatever Document Viewer uses to read the data, and whatever Okular uses if it's triggered by the file manager).
I can, obviously, work around this in either of those two ways (copy to local, open manually from the file menu). However, this seems to point to a larger problem with files on smb mounts.
Is this something that's fixable?