Application links fail with error : java.lang.IllegalArgumentException

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

Symptoms

Application links configured in JIRA are not working.

The following appears in the atlassian-jira.log:

1 2 3 4 5 6 7 8 2014-04-29 09:25:44,992 com.atlassian.mywork.client.reliability.DefaultUnreliableWorker:thread-3 WARN jan aaaa 497x4667x1 y387w0 10.0.4.23,127.0.0.1 /secure/CommentAssignIssue.jspa [mywork.client.reliability.DefaultReliabilityService] Failed task "{"username":"jan aaaa","type":"POST","json":"{\"globalId\":\"appId=7ba165f7-7bea-375a-83f2-1124c99f9d91&entity=issue&id=423301\",\ "condition\":{},\"metadata\":{\"watching\":true}}","path":"/rest/mywork/1/notification/metadata"}" java.lang.IllegalArgumentException: Illegal character in query at index 94: http://confluence.abc-pqr.de/rest/mywork/1/notification/metadata?xoauth_requestor_id=jan aaaa at java.net.URI.create(Unknown Source) at com.atlassian.sal.core.net.HttpClientProtocolConfig.changeHostConfigurationProtocol(HttpClientProtocolConfig.java:43) at com.atlassian.sal.core.net.HttpClientProtocolConfig.configureProtocol(HttpClientProtocolConfig.java:20) at com.atlassian.sal.core.net.HttpClientRequest.configureProtocol(HttpClientRequest.java:532) at com.atlassian.sal.core.net.HttpClientRequest.setUrl(HttpClientRequest.java:135)

Cause

The username used to configure application links has spaces in their username.

Resolution

  • JIRA does not normally Support usernames with spaces. Please replace the user used to configure Application link with another username that does not have spaces.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.