Unable to download attachments via Api from instance behind Identity Access Management solution

vijayendra
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!
June 22, 2023

Hey all,

I have data centre behind an `Identity Access Management provider`. I'm trying to download an attachment using a confluence link.

https://{domain-name}/download/attachments/{Page-id}/{attachment-name.png}

The curl request: 
curl --location --request GET
'https://{domain-name}/download/attachments/{Page-id}/{attachment-name.png}' \
--header 'Authorization: Bearer TOKEN' \

When I try to open the downloaded attachment, it redirects me to the `Identity Access Management` page showing error `There was an unexpected internal error`.

I have allowed the IPs in `Identity Access Management provider` and I am able to successfully retrieve the page content with the API but downloading the attachments are failing.

1 answer

0 votes
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 6, 2023

@vijayendra welcome to the Atlassian community 

What happens if you login first using the identity access management is a browser then go to the link, are you able to download it?  Also what are you seeing in the logs?

vijayendra
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!
October 3, 2024

I identified the issue. We had to whitelist the IPs in Confluence from which the request was originating and also the attachment endpoint which we are using to download. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events