Unable create application link from Confluence due wrong protocol

Hi there,

we have switched Confluence from http to https. I have removed old application links, but I'm not able to create new ones. And yes, server base url is https to smile

The request contains wrong protocol in link href attrubute

<applicationLink>
<link rel="self" href="http://example.com"/>
<id>5a328214-45e5-31ea-98f1-b8de1d5a730c</id>
<typeId>jira</typeId>
<name>xxx</name>
<displayUrl>https://jira.example.com</displayUrl>
<iconUrl>
https://example.com/16jira.png
</iconUrl>


<iconUri>
https://example.com128jira.png
</iconUri>


<rpcUrl>https://jira.example.com</rpcUrl>
<isPrimary>true</isPrimary>
<isSystem>false</isSystem>

</applicationLink>

The browser throws error

XMLHttpRequest cannot load http://example.com/rest/applinks/3.0/applicationlink/5a328214-45e5-31ea-98f1-b8de1d5a730c?_=1455816144194. Response for preflight is invalid (redirect)

This error is thrown only if I enable cross protocol request, if not, it ends up with error that it's not possible to do request to http from https.

 

Confluence in browser runs on https, all resources are loaded via https, why only application link thinks it runs on http? How do I convince Confluence to understand that it should use https?

 

Thank you.

1 answer

1 accepted

When I moved apache http infront of JIRA and Confluence - my application link stopped functioning smile

I had to create an unproxied link between the two to restore the app link functionality .

Yep, you are right. In our case it was nginx, which redirected to http, so it looked like it runs on https, but actualy it was http internaly in confluence.

I'm accepting your answer, thanks.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

378 views 16 9
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you