Draw.io saves my drawing as attachment but confluence can't display it in page

Using the draw.io plugin, I can create, edit and save a diagram successfully, however, when I publish my confluence page, I see "Error: Invalid descriptor" in place of my image.

The draw.io .png and .xml files have been successfully added to my page, but confluence seems to be failing to locate them.

When I go back in and edit my page the draw.io macro is still there, but when I edit it it behaves like a 'blank' draw.io drawing.

4 answers

Issue seems to have magically fixed itself, I can add drawings again

Atlassian do a lot of A/B testing in their releases. We often see a specific version of some code go out to a very small % of our users, then be replaced when a serious bug appears. I'm hoping that's the case here.

Hi Andrew,

I'm not associated to draw.io or something but I ran into this problem also and maybe my workaround will get you back on track for the time being.

I also had problems when creating a new diagram, which after saving did not appear on the Confluence page, even though the attachments were there.

What I did was the following:

  1. When on a new page, first add the draw.io macro to the page and save an empty diagram (without drawing anything on it), specify the name and publish the page. The Confluence page will show nothing.
  2. Go back to edit mode and draw your diagram and save, publish. This should show the diagram.

If you already had created a diagram which doesn't even show the macro in page edit mode:

  1. Download your diagram attachment to disk (not the png)
  2. Add a new empty draw.io macro to the page and immediately press save.
  3. Since your attachments already exist, draw.io will not allow you to choose the same name so you have to pick a new one.
  4. Save and publish
  5. Go back in page edit mode, and back to draw.io edit mode
  6. Drop the attachment onto the canvas, this will load the saved diagram into the macro.
  7. Save and publish
  8. Your diagram should show now on the page.

Note that all revisions will now be saved under the new name you chose when you created the empty diagram.

HTH,

Raymond

0 vote

Still seeing this problem today. Same thing shows across Safari, Firefox and Chrome. Not sure if it is related, but all the macro processing seems to be broken today in confluence. The text shortcuts for formatting (headers, bold etc) don't work for us here either.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

830 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you