Does not open notes created on another device: Permission denied
Before submitting an issue, please check the following
- [X] I have searched for similar issues (both open and closed) and cannot find a duplicate
- [X] I agree to follow the Code of Conduct
Describe the bug
Android 14, Saber v0.24.2 F-Droid (25020).
When I create a note, for example, on the tablet and copy it to another device, for example, the mobile (copied by hand or synced with Syncthing), it does not show up on the device on which it was not created.
The same thing happens with the whiteboard. On the device on which it was not created, the error is:
_[SEVERE] PathAccessException: Cannot open file, path = '/storage/emulated/0/Documents/Saber/whiteboard.sbn2' (OS Error: Permission denied, errno = 13)
To reproduce
Create a note on one device, copy it to another device, and try opening it on the second device.
Expected behavior
Notes should open on any device regardless of which one they were created on.
Saber version
0.24.2 F-Droid (25020)
Device
- OS: Android 14
Anything else?
No response
Experiencing similar behavior. I uninstalled saber (installed via FDroid) then installed the Play store version and I couldn't even see the notes which are in my saber folder anymore. Then I switched back to the FDroid version. Trying to rename a folder doesn't work as well.
Log:
SEVERE at 2024-11-22 13:43:08.807425
PathAccessException: Rename failed, path = '/storage/emulated/0/Download/saber/Physik/MSS12' (OS Error: Operation not permitted, errno = 1)
#0 _checkForErrorResponse (dart:io/common.dart:55)
#1 _Directory.rename.
Problem is on Android. It keeps owner which created file (owner app). Another app does not have access to other app files.
Try to import note.
Importing the note does not fully help, as it seems to create a new copy (instead of using the existing file) and hangs on saving the file, if multipage notes are involved.
Is this probably related to the permissions issues discussed in #1223?