Forums

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

Linking issues from Jira to Confluence

Fr0zt
Contributor
May 7, 2018

Hello.

I am working with Jira Service Desk 3.5.3 and Confluence 6.7.1 in the same machine (different ports but same domain).

I have created some issues in Service Desk. By going to "Raise a Request" in Jira and searching for an article, I got the Confluence URL.

When posting a comment in the issue, with the URL, a pop up is displayed asking for Confluence login credentials while I am already logged in, in Confluence in another tab.

I have tried the solutions in Atlassian article:

https://confluence.atlassian.com/confkb/logging-into-another-atlassian-application-logs-me-out-of-confluence-268043930.html?_ga=2.257760779.1858169875.1525698931-99236563.1519134127

 

- Option 1 gives me HTTP error 404.

- Option 2 asks me for login again.

- Option 1 + option 2 gives me HTTP error.

 

How should I fix this?

 

 

 

 

 

1 answer

0 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 7, 2018

Hi,

I understand when you followed Logging into another Atlassian application logs me out of Confluence you were not able to set a context path or change the cookie ID as described in the article.

Did you restart Confluence and change the base URL after adding the context path to the server.xml? Was Confluence restarted after changing the cookie setting? The 404 implies the context path was not set and the behavior of getting logged out when logged into Jira sounds like the cookies are still overwriting each other with the same name.

Thanks,

Ann

Fr0zt
Contributor
May 8, 2018

Hello.

Yes, I have restarted Confluence and changed the base URL after adding the context path to server.xml. And I also restarted it after changing the cookie setting.

Do you have any idea how to solve this issue? Can you help me?

AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 8, 2018

Please post your context directive from your server.xml with the context path added - maybe I can spot something of use. It should be similar to:

<Context path="/confluence" docBase="${catalina.home}/confluence" reloadable="false" useHttpOnly="true">
Fr0zt
Contributor
May 9, 2018

 

In Confluence, I have this server.xml:

<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4">

<Context path="/kb" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
<Manager pathname="" />
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60" />
</Context>

<Context path="${confluence.context.path}/synchrony-proxy" docBase="../synchrony-proxy" debug="0" reloadable="false" useHttpOnly="true">
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60" />
</Context>
</Host>

 

In Jira I have this:

 

<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">

<Context docBase="${catalina.home}/atlassian-jira" path="/jira" reloadable="false" useHttpOnly="true">


<Resource auth="Container" factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60" name="UserTransaction" type="javax.transaction.UserTransaction"/>
<Manager pathname=""/>
<JarScanner scanManifest="false"/>
</Context>

</Host>
Fr0zt
Contributor
May 13, 2018

So, do you have any idea about this?

AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 14, 2018

The server.xml context paths you posted look fine. Is it possible your browser is caching the error page or that old cookies are present? Please try with a different browser or clear all the cookies and cache.

Fr0zt
Contributor
May 15, 2018

I tried with a different browser. The same thing happens: When I try to access the Confluence URL I get a "Log in to Confluence" pop up. Even though I am logged in.

 

xxx.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events