Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable create application link from Confluence due wrong protocol

Jan Prokeš
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.
February 18, 2016

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

0 votes
Answer accepted
Vickey Lepcha
Contributor
February 18, 2016

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 .

Jan Prokeš
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.
February 18, 2016

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
TAGS
AUG Leaders

Atlassian Community Events