Whiteboard library persistence fails if the user's "Templates" folder has been deleted.
Environment
- Nextcloud deployment: Nextcloud AIO
- Whiteboard version: 1.5.9
- Browser: Brave / Chromium
Steps to reproduce
- Remove the user's
Templates/ folder from Nextcloud Files (or rename to TemplatesBackup)
- Open any .whiteboard file.
- Import a library. Library -> three dots -> Open -> select previously downloaded .excalidrawlib from a file picker
- Confirm the imported library appears in the current session.
- Reload the page and enter the .whiteboard file.
- Imported library disapears.
Actual behavior
The imported library disappears after reload.
In browser DevTools, the library save request fails:
PUT /apps/whiteboard/library -> 404
Expected behavior
Whiteboard should persist the imported library, even if the user deleted the default Templates/ folder.
Possible solution
- Ensure the user's
Templates/ folder exists before reading/writing personal.excalidrawlib.
- Recreate
Templates/ folder when importing a library.
Whiteboard library persistence fails if the user's "Templates" folder has been deleted.
Environment
Steps to reproduce
Templates/folder from Nextcloud Files (or rename toTemplatesBackup)Actual behavior
The imported library disappears after reload.
In browser DevTools, the library save request fails:
Expected behavior
Whiteboard should persist the imported library, even if the user deleted the default
Templates/folder.Possible solution
Templates/folder exists before reading/writing personal.excalidrawlib.Templates/folder when importing a library.