-
Bug
-
Resolution: Fixed
-
High
-
8.2.1, 8.4.1, 8.5.1, 8.6.1, 8.5.5
-
8.02
-
21
-
Severity 3 - Minor
-
10
-
Issue Summary
Trying to configure a new application link or loading the Application link page to list the status of existing Applinks will show "NETWORK ERROR" in red.
The REST client atlassian-rest-module:3.2.16 while reading headers (eg. Content-Type) does a case-sensitive lookup for them (headers name should be case-insensitive). So when headers are in lower case it can't parse them properly. The problem is triggered by the proxy server, which is converting all HTTP header names to lower-case.
Environment
- Use of proxy which converts the HTTP headers to lower-case.
- Example HAProxy with native HTTP representation (HTX) enabled. This will force headers internally to be stored in lowercase.
Steps to Reproduce
- Setup two Atlassian applications behind a proxy
- Setup HAProxy with HTX enabled on one of the application
- Configure Application link between the two applications
Expected Results
The application link can be configured and established
Actual Results
The application link is not configured correctly with "NETWORK ERROR" due to wrong headers.
Diagnosis
Generate HAR file in the process of configuring or loading the Application link page.
- On Application link page load, locate /rest/applinks-oauth/latest/applicationlink/<applinkid>/authentication and see UNEXPECTED_RESPONSE in its body.
Notes
- As per RFC 2616, HTTP 1.1 expects headers name to be case-insensitive.
- HTTP 2.0 enforce the requirement for the headers to be all lowercase as per RFC 7540 about HTTP/2, see
JRASERVER-70517
Workaround
On the proxy side, disable the handling of headers to all lowercase:
- Example HAProxy, set no option http-use-htx
- Example for Envoy - header_casing
- is caused by
-
JSWSERVER-20051 Application Link confluence> Jira shows Network error
- Closed
- relates to
-
FE-7505 Application Link Status page fails to load due to Case-sensitive checks for Headers
- Long Term Backlog
-
JRASERVER-70517 Officially Support HTTP/2 protocol
- Closed
-
RAID-1901 Loading...
- was cloned as
-
BAM-21028 Application Link Status page fails to load due to Case-sensitive checks for Headers
- Closed
-
BSERV-12470 Application Link Status page fails to load due to Case-sensitive checks for Headers
- Closed
-
CONFSERVER-60043 Application Link Status page fails to load due to Case-sensitive checks for Headers
- Closed
- is action for
-
ITOPS-2281 Loading...
- Mentioned in