Diagram not editable after book import #5398

Closed
opened 2026-02-05 10:02:13 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @stc-digital on GitHub (Aug 12, 2025).

Describe the Bug

As an admin user I imported a book from another bookstack instance. On one page a diagram is included. It was not possible to edit that diagram anymore, on the imported book.

Steps to Reproduce

  1. As admin user, import Book with an included diagram
  2. Try to edit the diagram and see error message "Drawing data could not be loaded. The drawing file might no longer exist or you may not have permission to access it."

Expected Behaviour

Should be editable as user who imported the book.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v25.07

Originally created by @stc-digital on GitHub (Aug 12, 2025). ### Describe the Bug As an admin user I imported a book from another bookstack instance. On one page a diagram is included. It was not possible to edit that diagram anymore, on the imported book. ### Steps to Reproduce 1. As admin user, import Book with an included diagram 2. Try to edit the diagram and see error message "Drawing data could not be loaded. The drawing file might no longer exist or you may not have permission to access it." ### Expected Behaviour Should be editable as user who imported the book. ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version v25.07
OVERLORD added the 🐛 Bug label 2026-02-05 10:02:13 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Aug 24, 2025):

Hi @stc-digital,
Thanks for raising this.

The required drawing references were not being handled as part of the import process.
I've now addressed this via 7c79b10fb6, which will be part of the next patch or feature release.

You'll be able to re-import those original ZIPs after the patched release and end up with drawings handled.
Otherwise, for existing imports, those drawings were still attached to the imported pages. Therefore you could access the drawing manager in the editor (little dropdown next to drawing icon), then select drawings for "This page" (page icon tab above gallery), then select the relevant drawing to re-insert. This will re-insert with the correct reference.
Otherwise, you can always start a new drawing and copy+paste/drag-in/import the old drawing image png into the editor to import it as a fully editable drawing.

@ssddanbrown commented on GitHub (Aug 24, 2025): Hi @stc-digital, Thanks for raising this. The required drawing references were not being handled as part of the import process. I've now addressed this via 7c79b10fb6520f5bbd84e7de1369775d78ccadc3, which will be part of the next patch or feature release. You'll be able to re-import those original ZIPs after the patched release and end up with drawings handled. Otherwise, for existing imports, those drawings were still attached to the imported pages. Therefore you could access the drawing manager in the editor (little dropdown next to drawing icon), then select drawings for "This page" (page icon tab above gallery), then select the relevant drawing to re-insert. This will re-insert with the correct reference. Otherwise, you can always start a new drawing and copy+paste/drag-in/import the old drawing image png into the editor to import it as a fully editable drawing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5398