Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting IllegalArgumentException when I try to run JQL search rest api

Hi, 

I am trying to get jira issue details from confluence and trying to run the below jql search api. it throws IllegalArgumentException. 

 

 https://xyz/plugins/servlet/applinks/proxy?appId=xyz123&path=https://abcdef/rest/api/2/search?jql=project=ATADMIN%20AND%20status=Done

 

I think, the space in the query causing issue. jql=project=ATADIM AND status=Done. 

 

Please suggest how to handle that space. 

1 answer

0 votes
Fabian Lim Community Leader Dec 24, 2021

Hi @Nallusamy Narayanaswamy

Do you have more details on the error message?

Thanks

Hi @Fabian Lim 

Here is the full error

 

Cause

java.lang.IllegalArgumentException: java.net.URISyntaxException: Illegal character in query at index 110: https://athenajira.athenahealth.com/https://athenajira.athenahealth.com/rest/api/2/search?jql=project=INCIDENT AND status=Done
    at com.atlassian.applinks.core.auth.ApplicationLinkRequestFactoryFactoryImpl$AbsoluteURLRequestFactory.createRequest(ApplicationLinkRequestFactoryFactoryImpl.java:191)

caused by: java.net.URISyntaxException: Illegal character in query at index 110: https://athenajira.athenahealth.com/https://athenajira.athenahealth.com/rest/api/2/search?jql=project=INCIDENT AND status=Done
    at java.base/java.net.URI$Parser.fail(Unknown Source)

Stack Trace:[hide]

java.lang.IllegalArgumentException: java.net.URISyntaxException: Illegal character in query at index 110: https://athenajira.athenahealth.com/https://athenajira.athenahealth.com/rest/api/2/search?jql=project=INCIDENT AND status=Done
 at com.atlassian.applinks.core.auth.ApplicationLinkRequestFactoryFactoryImpl$AbsoluteURLRequestFactory.createRequest(ApplicationLinkRequestFactoryFactoryImpl.java:191)
 at com.atlassian.applinks.core.auth.ApplicationLinkAnalyticsRequestFactory.createRequest(ApplicationLinkAnalyticsRequestFactory.java:30)
 at com.atlassian.confluence.plugins.jira.AbstractProxyServlet.prepareRequest(AbstractProxyServlet.java:55)
 at com.atlassian.confluence.plugins.jira.AbstractProxyServlet.doProxy(AbstractProxyServlet.java:147)
 at com.atlassian.confluence.plugins.jira.AppLinksProxyRequestServlet.doProxy(AppLinksProxyRequestServlet.java:82)
 at com.atlassian.confluence.plugins.jira.AbstractProxyServlet.doGet(AbstractProxyServlet.java:87)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

41,177 views 28 130
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you