Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

PlantUML possibly not working with new editor in Confluence Cloud?

Kevin Dangoor July 1, 2019

Our site has switched to the new Confluence editor, which may or may not be related to this problem.

I just tried creating a new diagram. It worked fine when previewing in the dialog but when I clicked Insert, creating the attachment failed. Looking at the Network tab in Chrome Dev Tools, I see that it POSTed to: /wiki/rpc/json-rpc/confluenceservice-v2/addAttachment and the response was 501 ("Not Implemented").

have created PlantUML attachments in the past, but that was before our site switched to the new editor.

I haven't found any similar questions yet... help?

 

1 answer

1 accepted

0 votes
Answer accepted
David Benson _draw_io_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 1, 2019

The call seems to have been removed and a Confluence Cloud release went out that implemented that change. We weren't aware it was going. You can track https://trello.com/c/SaGGpzOj/71-unabled-to-create-new-diagrams-on-drawio-for-confluence-cloud (it's draw.io, but the problem is the same thing).

Kevin Dangoor July 1, 2019

We use draw.io also but I happened to hit this first in PlantUML.

It's unfortunate that they removed the call before people even knew that was happening.

Kevin Dangoor July 1, 2019

Oh, and thanks for the quick response!

David Benson _draw_io_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 1, 2019

We've deployed a fix for draw.io, currently working on the same change for PlantUML.

David Benson _draw_io_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2019

Fix for PlantUML deployed as well

Like Kevin Dangoor likes this
Kevin Dangoor July 2, 2019

Thank you for the quick fix!

Kevin Dangoor July 2, 2019

Hmm, I just gave it a try and it has no trouble inserting an image now, but it shows up as broken. I didn't see anything obviously wrong in the browser dev tools.

David Benson _draw_io_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2019

Shoot an email to support@draw.io and we'll setup a test Confluence instance to try and get a repro case there.

Like Kevin Dangoor likes this
Kevin Dangoor July 2, 2019

I just tested with draw.io, and that one is working fine, so this is something specific to the image attachment that's being created for Plant

Kevin Dangoor July 2, 2019

Will do!

David Benson _draw_io_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2019

We deliver via cloudflare, they had went bang a couple of hours ago and the edges caches have had inconsistent files in some places. It might be worth opening dev tools, setting browser cache off when dev tools are open and trying again, to try to flush things out.

Kevin Dangoor July 2, 2019 edited

I see a 302 from plant.draw.io for the image going to an Atlassian URL. If I download the file on the other end of that redirect, it appears to be a broken image.

Ahh, I just took a look at what's inside the file. It appears to be base64 encoded. I just base64 decoded it and the image is actually in there, it's just being stored base64 instead of binary.

David Benson _draw_io_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2019

If you view source of plant.draw.io/connect/plantuml/macroEditor-1-1-2.html, do you see a b64toBlob call on line 248?

Kevin Dangoor July 2, 2019

Yes, indeed, and now it works. I see what you mean about the Cloudflare caching. All appears to be well now, thanks!

Like David Benson _draw_io_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Upcoming Confluence Events