Observing application link traffic for troubleshooting purposes
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
This article also applies to Confluence, Bitbucket Server, and Bamboo
Summary
Because Atlassian applications communicate with each other directly it can be difficult to trace requests between them when using application link functionality such as Confluence Team Calendars with Jira issue due dates By using detailed debug logging it's possible to observe the request and response of such calls
Diagnosis
Cross-product functionality isn't working and all the common causes described on the application links troubleshooting guide have been ruled out
Solution
Enable debug logging for application link traffic by selecting Configure logging level for another package under Jira's logging and profiling administration section ( see Change logging levels in Jira Server ) and adding the following:
com.atlassian.plugins.navlink
com.atlassian.applinks
com.atlassian.oauth.consumer
org.apache.http
Set each logging class to the DEBUG level
For reference purposes, here's example out from Confluence's logs with the above logging enabled when viewing a Team Calendar with Jira issue due dates. Notice how Confluence is searching for Jira issues using application link functionality with OAuth authentication:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
2021-01-28 17:15:54,026 DEBUG [http-nio-6746-exec-1] [oauth.consumer.core.ConsumerServiceImpl] sign Signed request OAuthMessage(POST, http://localhost:48131/j8131/rest/ical/1.0/ical/util/jql/count, [oauth_token=, xoauth_requestor_id=admin, jql=project%20%3D%20%22DESK%22, dateFieldName=customfield_11324, includeFixVersions=false, oauth_consumer_key=Confluence%3A0930298248, oauth_signature_method=RSA-SHA1, oauth_timestamp=1611882954, oauth_nonce=2c780454-fdec-4143-8b21-f87daf834175_146170592802489, oauth_version=1.0, oauth_signature=cU9gAiwszCJfElhCZuscny4cMEmlZ3aZ14AnOM3ZBzq9hFuW8scu6e9%2BBwdFrOeYI9rfmFcyhCE6JDpew2Dac%2B6se47tYVrbKjMkQSeVEZPuTFl09nZ5eZdFvLFpVpPZxdFcBaUjqKhU%2FaVrBm5WwiNoA6um9ZAmbBIthJOCKmvMtgsKJyyWKjqE7gA3i7j7mFfegjIvMXm2175OYPG%2BGzTcYDY3DXfx3qPVAeADEXgwuZ37hsquePdrDogYqrntAYA6FPGCievcF%2BVDi2WWne6X%2BrtS%2B52fNcxuKrCjsKxDi4Eob5yyT6BXndtMNx%2FYVbgtr0IW2jGqbPgYTuEGXQ%3D%3D])
2021-01-28 17:15:54,034 DEBUG [http-nio-6746-exec-1] [org.apache.http.headers] onRequestSubmitted http-outgoing-100 >> POST /j8131/rest/ical/1.0/ical/util/jql/count?xoauth_requestor_id=admin HTTP/1.1
2021-01-28 17:15:54,039 DEBUG [http-nio-6746-exec-1] [org.apache.http.wire] wire http-outgoing-100 >> "POST /j8131/rest/ical/1.0/ical/util/jql/count?xoauth_requestor_id=admin HTTP/1.1[\r][\n]"
2021-01-28 17:23:58,925 DEBUG [http-nio-6746-exec-8] [org.apache.http.headers] onRequestSubmitted http-outgoing-138 >> Authorization: OAuth oauth_token="", oauth_consumer_key="Confluence%3A0930298248", oauth_signature_method="RSA-SHA1", oauth_timestamp="1611883438", oauth_nonce="51fcdb46-4c83-4ce6-81f5-356d4ed0d02c_146655486676268", oauth_version="1.0", oauth_signature="CZql7VgS7v0TpmbNHbrsxmtvyEdaQF%2FwCXxAKMBu2aJB8thpox50XLdJV%2FbO4CSZkfeNpI9IUqUG6hUj4Oxm0Kr42JOtHE8BtnOBvTPXawAUZEkfWoavq%2Bnx1h76OQP18rGFAyCReCtmlOchS4NkBn2ug87QyW8%2F0Ce%2B6xim4YHiXUJBISwFpL7LRgtbkXNKrXM6U0TIPgJfBxzc8C7xhP%2FfPWPZ0dQZjl%2BKo6fJo2Vj6Wwz9p%2BhpO0gks8Jks0UstmOujLTeEeJ7Kkho2zqfFGUE6tWK0B7%2FuyFfxeYQCEfj9adqtQvlgobAKppqLM4HDoUgNfe0srhHRrMPsTEDA%3D%3D"
2021-01-28 17:23:58,925 DEBUG [http-nio-6746-exec-8] [org.apache.http.headers] onRequestSubmitted http-outgoing-138 >> Host: localhost:48131
2021-01-28 17:23:58,926 DEBUG [http-nio-6746-exec-8] [org.apache.http.headers] onRequestSubmitted http-outgoing-138 >> Connection: Keep-Alive
2021-01-28 17:23:58,927 DEBUG [http-nio-6746-exec-8] [org.apache.http.headers] onRequestSubmitted http-outgoing-138 >> User-Agent: Apache-HttpClient/4.5.6 (Java/1.8.0_222)
2021-01-28 17:23:58,927 DEBUG [http-nio-6746-exec-8] [org.apache.http.headers] onRequestSubmitted http-outgoing-138 >> Accept-Encoding: gzip,deflate
2021-01-28 17:23:58,928 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 >> "GET /j8131/rest/ical/1.0/ical/search/jql/events.ics?_=1611883438904&jql=project+%3D+%22DESK%22&dateFieldName=customfield_11324&includeFixVersions=false&start=1606435200000&end=1617663600000&maxIssue=1000&xoauth_requestor_id=admin HTTP/1.1[\r][\n]"
2021-01-28 17:23:58,929 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 >> "Authorization: OAuth oauth_token="", oauth_consumer_key="Confluence%3A0930298248", oauth_signature_method="RSA-SHA1", oauth_timestamp="1611883438", oauth_nonce="51fcdb46-4c83-4ce6-81f5-356d4ed0d02c_146655486676268", oauth_version="1.0", oauth_signature="CZql7VgS7v0TpmbNHbrsxmtvyEdaQF%2FwCXxAKMBu2aJB8thpox50XLdJV%2FbO4CSZkfeNpI9IUqUG6hUj4Oxm0Kr42JOtHE8BtnOBvTPXawAUZEkfWoavq%2Bnx1h76OQP18rGFAyCReCtmlOchS4NkBn2ug87QyW8%2F0Ce%2B6xim4YHiXUJBISwFpL7LRgtbkXNKrXM6U0TIPgJfBxzc8C7xhP%2FfPWPZ0dQZjl%2BKo6fJo2Vj6Wwz9p%2BhpO0gks8Jks0UstmOujLTeEeJ7Kkho2zqfFGUE6tWK0B7%2FuyFfxeYQCEfj9adqtQvlgobAKppqLM4HDoUgNfe0srhHRrMPsTEDA%3D%3D"[\r][\n]"
2021-01-28 17:23:58,930 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 >> "Host: localhost:48131[\r][\n]"
2021-01-28 17:23:58,931 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 >> "Connection: Keep-Alive[\r][\n]"
2021-01-28 17:23:58,931 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 >> "User-Agent: Apache-HttpClient/4.5.6 (Java/1.8.0_222)[\r][\n]"
2021-01-28 17:23:58,932 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2021-01-28 17:23:58,933 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 >> "[\r][\n]"
2021-01-28 17:23:59,078 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "HTTP/1.1 200 [\r][\n]"
2021-01-28 17:23:59,079 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "X-AREQUESTID: 1043x320x1[\r][\n]"
2021-01-28 17:23:59,081 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "X-ANODEID: node1[\r][\n]"
2021-01-28 17:23:59,082 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "Referrer-Policy: strict-origin-when-cross-origin[\r][\n]"
2021-01-28 17:23:59,083 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "X-XSS-Protection: 1; mode=block[\r][\n]"
2021-01-28 17:23:59,084 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "X-Content-Type-Options: nosniff[\r][\n]"
2021-01-28 17:23:59,085 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "X-Frame-Options: SAMEORIGIN[\r][\n]"
2021-01-28 17:23:59,086 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "Content-Security-Policy: frame-ancestors 'self'[\r][\n]"
2021-01-28 17:23:59,087 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "Set-Cookie: JSESSIONID=847993834A62FA301C4374B1FFD4085E; Path=/j8131; HttpOnly[\r][\n]"
2021-01-28 17:23:59,088 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "X-Seraph-LoginReason: OK[\r][\n]"
2021-01-28 17:23:59,089 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "Set-Cookie: atlassian.xsrf.token=BHF7-DYI0-ECT2-3K20_a15c25090227ec21476e709833b1f5ddcedc8b85_lin; Path=/j8131[\r][\n]"
2021-01-28 17:23:59,090 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "X-ASESSIONID: 9uiksq[\r][\n]"
2021-01-28 17:23:59,091 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "X-AUSERNAME: admin[\r][\n]"
2021-01-28 17:23:59,092 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "Cache-Control: no-cache, no-store, no-transform[\r][\n]"
2021-01-28 17:23:59,093 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "Content-Type: text/calendar;charset=UTF-8[\r][\n]"
2021-01-28 17:23:59,094 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "Transfer-Encoding: chunked[\r][\n]"
2021-01-28 17:23:59,095 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "Date: Fri, 29 Jan 2021 01:23:58 GMT[\r][\n]"
2021-01-28 17:23:59,096 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "Keep-Alive: timeout=20[\r][\n]"
2021-01-28 17:23:59,097 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "Connection: keep-alive[\r][\n]"
2021-01-28 17:23:59,098 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "[\r][\n]"
2021-01-28 17:23:59,099 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "e09[\r][\n]"
2021-01-28 17:23:59,100 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "BEGIN:VCALENDAR[\r][\n]"
2021-01-28 17:23:59,101 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "PRODID:-//Atlassian JIRA//iCalendar Plugin 1.0//EN[\r][\n]"
2021-01-28 17:23:59,102 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "VERSION:2.0[\r][\n]"
2021-01-28 17:23:59,103 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "CALSCALE:GREGORIAN[\r][\n]"
2021-01-28 17:23:59,103 DEBUG [http-nio-6746-exec-8] [org.apache.http.wire] wire http-outgoing-138 << "X-WR-CALNAME:Jira[\r][\n]"
Was this helpful?