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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

When Rest Api is used to version a new attachment the attachment stops displaying in the page body Edited

When a new attachment version is submitted through the user interface the attachment loads no problem in the body of the page. 

As of yesterday 1/14/2021 when I version a new attachment through the Atlassian Rest Api the attachment uploads fine and is downloadable but will not render in the page body. (This has been working for 8 months no issues) 

'/rest/api/content/{page_id}/child/attachment/{attachment_id}/data'


When I query the attachment details with 

/rest/prototype/1/content/{page_id}/attachments

The response is identical for the manual upload and the upload using the Rest API. 

1 answer

0 votes
Diego Atlassian Team Jan 19, 2021

Hello @Dallas Elliott!

As I understand, after a file version is created via REST API the attachment is not rendered.

I tried to replicate this but, was unable to.

With this in mind, I would like to ask you a few questions. Here we go:

  1. What is displayed in the place where the affected attachment should be?
  2. Is this happening in different pages in your Confluence Site?
  3. Is this affecting different file types?
  4. What happens if you create another attachment version via User Interface?
  5. If you open the browser console before loading the page and then load the page, is there any error present there?

Also, would it be possible for you to share a screenshot of the affected attachment so we can see what is displayed? Please, be sure to not disclose any sensitive data with this screenshot. Our Community is an open space and everyone can see everything that is posted here.

Let us hear from you!

 

  • What is displayed in the place where the affected attachment should be?
  • Is this happening in different pages in your Confluence Site?
    • Yes any page using the rest api to upload an attachment
  • Is this affecting different file types?
    • Unknown we're only displaying images 
  • What happens if you create another attachment version via User Interface?
    • Everything works fine, as expected, image renders
  • If you open the browser console before loading the page and then load the page, is there any error present there?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

198 views 0 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you