Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to edit draw.io images #5493

Open
UpcraftLP opened this issue Feb 17, 2025 · 7 comments
Open

unable to edit draw.io images #5493

UpcraftLP opened this issue Feb 17, 2025 · 7 comments
Labels

Comments

@UpcraftLP
Copy link

Describe the Bug

When trying to edit embedded draw.io images on a page, this suddenly no longer works, instead an error message is shown.

Drawing data could not be loaded. The drawing file might no longer exist or you may not have permission to access it.

However, the image itself displays correctly, and manually importing the file into draw.io and editing it works just fine.

In case it is important, my images are served from an S3 bucket, but are publicly visible.

I also noticed that in the drawing manager they all display as errors, yet when I go inspect the URL they are pointing to and manually open it, I get the correct image file.

Steps to Reproduce

  1. browse to a page that has draw.io images embedded into it.
  2. switch to edit mode
  3. double-click any of the draw.io images
  4. --> Error message

Expected Behaviour

Diagram editor opens.

Screenshots or Additional Context

Image

Image

Browser Details

Vivaldi (Chromium) 64-bit, Windows 11

Exact BookStack Version

24.12.1

@ssddanbrown
Copy link
Member

Hi @UpcraftLP,

  • Did you move images/storage/drawings at any point?
  • Are you able to create drawings without error?

@UpcraftLP
Copy link
Author

UpcraftLP commented Feb 17, 2025

  • Did you move images/storage/drawings at any point?

no I dont think so


  • Are you able to create drawings without error?

No, that too causes an error. And the following appears in the console:

Image

@ssddanbrown
Copy link
Member

No, that too causes an error. And the following appears in the console:

Okay, how did you originally create the drawings you're attempting to edit? Was creation working before? If so, what has changed since?

@UpcraftLP
Copy link
Author

Okay, how did you originally create the drawings you're attempting to edit? Was creation working before? If so, what has changed since?

It was working at some point between 2022 and now, but is not anymore. That was the last time someone needed to edit a diagram on this wiki...

I can potentially try and set up a fresh bookstack instance later that has the same settings, to see whether I can reproduce the issue on there.

@kouaksms
Copy link

kouaksms commented Feb 24, 2025

Hi,
I just had the same issue with a diagram

Steps to Reproduce

  1. Create new page1 with diagram
  2. Copy page1 to page2 (both diagram share the same id?)
  3. Delete page1

Diagram on page2 becoming non editable

@davidjgraph
Copy link

Does the diagram data load correctly if you look at the network tab of the browser debugger?

@kouaksms
Copy link

Only the renderer image remain but in fact it is normal, there is a warning when you copy a page, my bad... (however a big thank you both @davidjgraph and @ssddanbrown for your wonderful softwares :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants