Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't add draw.io widgets to saved draft

Stephen Ecker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 5, 2024

This is really a bug report, but I could not find another place to do so.

 

If you have saved a page as a draft, upon reopening I cannot add any draw.io widgets.

 

It's quite easy to reproduce:

* create a new page

* click "Close draft" in the top right corner

* reopen draft

* attempt to add a draw.io diagram

* click Create on any template

I get a popup that says "Draft Write Error: Draft could not be created"

in the Network tab of the browser (chrome, though I doubt it makes a difference), I see a 404 response from the api endpoint: (I have removed the ID's from the reponse and the url)

PUT /wiki/rest/api/content/....../child/attachment?status=draft

 

with the following response

{
"statusCode": 404,
"data": {
"authorized": true,
"valid": true,
"errors": [],
"successful": true
},
"message": "com.atlassian.confluence.api.service.exceptions.NotFoundException: No content found with id : draft and status ContentId{id=.......}, there is a content object with status : current"
}

 

 

If I publish the draft, then reopen it for editing, adding a draw.io diagram works fine.

 

Thanks.

3 answers

1 vote
Stephen Ecker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 5, 2024

Also, to clarify, this does _not_ happen if I have just newly created the page... *only* when it had previously been saved as a draft without ever having been published.

Marco Kwok
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 8, 2024

I have the same problem..

0 votes
Marija Radovic
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.
January 10, 2024

Hi @Stephen Ecker @Marco Kwok 

We reproduced the behaviour and added it to https://github.com/jgraph/drawio/issues/4095

Feel free to comment/track the issue there.

Kind regards,

Marija

0 votes
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.
January 6, 2024

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events