Content img src URLs redirect to http, breaking in safari

Chris Miller October 21, 2020

When getting `content` from the Cloud API, the delivered html contains img src urls formatted in the following way:

src=\"https://name.atlassian.net/wiki/download/attachments/1768720069/Screen%20Shot%202020-10-12%20at%202.04.48%20PM.png?version=1&modificationDate=1602605753562&cacheVersion=1&api=v2\" 

Which, in Safari, redirects to a secondary URL to download the attachment, which is HTTP, causing these errors:

Screen Shot 2020-10-21 at 1.04.51 PM.png

URL used:

https://<org>.atlassian.net/wiki/rest/api/content/1768720069?expand=body.export_view

Is this an oversight? Or is there a way to get simpler URLs embedded in the export_view html? Thanks

1 answer

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 28, 2020

Hello @Chris Miller!

As I understand, you are facing alerts about Mixed Content coming from Confluence. With this in mind, please allow me to ask a few questions. Here we go:

  1. Are those warnings present when using another browser?
  2. How exactly did you make the call to trigger those warnings?
  3. Are you unable to download attachment from your pages?
  4. How exactly did you trigger those warnings in Safari?

The export_view exports the page body content into HTML format with absolute links to content within it. There is a conversion happening, I believe that the mixed content is created during the creation of the links for the HTML content.

 

Let us hear from you!

Suggest an answer

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

Atlassian Community Events