Can't link Repository to Jira Project

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following appears in the atlassian-fisheye-<date>.log:

2013-07-04 08:52:09,533 WARN  [btpool0-649 ] org.apache.commons.httpclient.HttpMethodDirector org.apache.commons.httpclient.HttpMethodDirector-processWWWAuthChallenge - Unable to respond to any of these challenges: {oauth=OAuth realm="http%3A%2F%2Ftm-jira.ch902.my-it-solutions.net"}
2013-07-04 08:52:09,533 WARN  [btpool0-649 ] com.atlassian.applinks.core.rest.PermissionResource com.atlassian.applinks.core.rest.PermissionResource$4-handle - Authentication failed for application link TM_Plattform JIRA (9901e157-48af-395d-9b6c-8bd76a39b1a5) http://tm-jira.ch902.my-it-solutions.net com.atlassian.applinks.application.jira.JiraApplicationTypeImpl@1f98a81. Response headers: {WWW-Authenticate=OAuth realm="http%3A%2F%2Ftm-jira.ch902.my-it-solutions.net", Content-Length=174, Set-Cookie=atlassian.xsrf.token=BXHV-OUYI-CVTP-3Q4N|e579638d17fbdccf587cade5df3bf56bebbdf577|lout; Path=/, X-Seraph-Trusted-App-Error=BAD_URL;	Request not allowed to access URL: {0};	["/rest/applinks/1.0/permission/create-entity/32ca2dc2-8e1e-39a1-98a8-99dbed86ac86"], X-AUSERNAME=anonymous, Connection=close, Server=Apache-Coyote/1.1, Cache-Control=no-transform, Vary=Accept, Date=Thu, 04 Jul 2013 06:52:09 GMT, X-Seraph-Trusted-App-Status=ERROR, Content-Type=application/xml;charset=UTF-8, X-AREQUESTID=532x27553x1} body: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>401</status-code><message>Client must be authenticated to access this resource.</message></status>

The following appears in the atlassian-jira.log:

2013-07-04 08:52:09,543 http-80-4 INFO anonymous 532x27553x1 - 10.95.161.66 /rest/applinks/1.0/permission/create-entity/32ca2dc2-8e1e-39a1-98a8-99dbed86ac86 [plugins.workflow.servlet.JWDSendRedirectFilter] send redirect filter running
2013-07-04 08:52:09,543 http-80-4 INFO anonymous 532x27553x1 - 10.95.161.66 /rest/applinks/1.0/permission/create-entity/32ca2dc2-8e1e-39a1-98a8-99dbed86ac86 [plugins.workflow.servlet.JWDSendRedirectResponseWrapper] response wrapper created
2013-07-04 08:52:09,543 http-80-4 WARN anonymous 532x27553x1 - 10.95.161.66 /rest/applinks/1.0/permission/create-entity/32ca2dc2-8e1e-39a1-98a8-99dbed86ac86 [auth.trustedapps.filter.TrustedApplicationFilterAuthenticator] Failed to login trusted application: 8B1016A60127AE629DB0D20B005D7A8A due to: com.atlassian.security.auth.trustedapps.InvalidCertificateException: Request not allowed to access URL: /rest/applinks/1.0/permission/create-entity/32ca2dc2-8e1e-39a1-98a8-99dbed86ac86
2013-07-04 08:52:09,543 http-80-4 DEBUG anonymous 532x27553x1 - 10.95.161.66 /rest/applinks/1.0/permission/create-entity/32ca2dc2-8e1e-39a1-98a8-99dbed86ac86 [auth.trustedapps.filter.TrustedApplicationFilterAuthenticator] Failed to login trusted application cause
com.atlassian.security.auth.trustedapps.InvalidCertificateException: Request not allowed to access URL: /rest/applinks/1.0/permission/create-entity/32ca2dc2-8e1e-39a1-98a8-99dbed86ac86
	at com.atlassian.security.auth.trustedapps.DefaultTrustedApplication.checkRequest(DefaultTrustedApplication.java:121)
	at com.atlassian.security.auth.trustedapps.DefaultTrustedApplication.decode(DefaultTrustedApplication.java:88)
	at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationFilterAuthenticator.authenticate(TrustedApplicationFilterAuthenticator.java:102)
	at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.authenticate(TrustedApplicationsFilter.java:113)
	at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:95)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

Cause

JIRA Incoming Authentication URL Patterns are not correctly set in the Application Link.

Resolution

Set the URL Patterns correctly according to Configuring Trusted Applications Authentication for an Application Link

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.