Forums

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

Content of body.storage and body.editor is different

Mathias Franz
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!
November 24, 2021

Hello,

I was editing a lot of pages via Rest API of our confluence Server instance.

All of the following steps were done via python and the atlassian-python-ai-package.

When I view the edited pages, everything looks good. But if want to edit one of those automatically edited pages, the old content appears in the editor. I don't know how to solve or fix this problem.

If I simply open the page in chrome it looks fine. The new content is present:body_storage.PNG

If I click on edit, the old content appears in the editor:

body_editor.PNG

 

 

Funfact: If I make some changes on one of those broken pages via the editor and than restore the page via pagehistory, the problem disappears. But unfortunatelly this not the way to solve the problem because there are to many pages where I need to do this.

 

What i have done:

I changed the body of a page via python-script.

1. get the body from a page

2. i added some content at the top of the body (the content that was added came from another confluence-page ZYX)

3. replace the body of the page

I'm not a native english speaker but I hope you understand what the problem is. Otherwise please feel free to ask. :)

1 answer

0 votes
Dominic Lagger
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.
December 2, 2021

Hi @Mathias Franz 

The only thing I can imagine is, that you have "unpublished changes" in one of those pages. 

To recapitulate: 

  1. You get the content of a page
  2. You change something with python in the body
  3. You save this page
  4. in confluence, you can see the changes, but the edit mode is wrong? 

Can you share some code?

Thanks, Dominic

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events