orgzly / orgzly-android

Outliner for taking notes and managing to-do lists
https://www.orgzly.com
GNU General Public License v3.0
2.7k stars 305 forks source link

Cannot open PDF file links #929

Open renatocan opened 2 years ago

renatocan commented 2 years ago

Hi everyone,

I use orgzly as a documenting system and I generally add links to external documents (images, PDFs and DJVU files).

Recently, when I tried to open a link to a PDF file, I got the following message:

Cannot open document
Reason:java.io.FileNotFOundException: open failed: EACCES (Permission denied)

If I just change the PDF file to a DJVU file in the same directory and update the link, everything works well. I suppose this may be related to media access permissions. However, from a user point of view, I just have access to a setting to allow "files and media" which is enabled. From a dev point of view, are there details about the file types allowed, when setting this permission?

I'm using Orgzly 1.8.6, installed from F-Droid repo, on Android 11. I suspect the problem is recent since I have been using this for several months.

Thanks in advance,

Renato.