ReST APIs - JQL expand triggers status 500 after upgrading to LTS 7.19.25

Andrea Rinaldi
Contributor
July 30, 2024

Hi everyone,

we have an integration with Confluence that scrapes spaces structure and content using official ReST APIs and following expandability chain in requests.

In fact we are gathering pages content (mostly text and attachments) with the following API call:

[GET] /rest/api/content/spaceKey=HSC&expand=ancestors,children.attachment,history.lastUpdated&status=current&type=page

On previous LTS versions everything works fine. But since one of our customers upgraded its instance to 7.19.25 this API call started exlpoding in a 500 status code. 

We found out that the issue occurs because of children.* expansions, in fact if we remove the children.attachment term everything works fine. 

I know that we could fix our integration directly calling the attachment API but it would require another call for every single page and we would like to avoid it.

Is it something actually related to the latest LTS or should we look for misconfigurations in our customer instance?

Thank you in advance.

Cheers,
Andrea

1 answer

0 votes
David Bakkers
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.
August 3, 2024

Hello @Andrea Rinaldi 

Is it something actually related to the latest LTS or should we look for misconfigurations in our customer instance?

When you spun up a test instance of Confluence DC v7.19.25 in a sandbox yourself, did it exhibit the same characteristics as your customer's instance?

Andrea Rinaldi
Contributor
August 14, 2024

Hi @David Bakkers

thank you for answering.

Yes, also on my local instance with same version the issue occurs.

Screenshot 2024-08-14 at 13.55.57.png

 

While removing the expand on children.attachment the API answers.

Screenshot 2024-08-14 at 13.56.21.png

It seems a regression on the version. I will try with the following 7.* version.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events