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 an java.lang.IllegalArgumentException with authenticated HTTP Feed Custom Field

Trying to use the JSON HTTP Feed custom field to retrieve a list of the components associated with a project.

Doing this by accessing the JIRA REST API http://JIRAROOT/rest/api/2/project/KEY/components using the JSON HTTP Feed.

Access to the project is restricted though so I have configured the authentication credentials for the custom field.

I getting the following error when I attempt to load the form though:

Illegal character(s) in message header value: Basic <REDACTED>=

(where <REDACTED> is the base64 encoded username/password)

In the atlassian-jira.log file the following stack trace appears:

2016-01-13 11:55:44,419 http-bio-8080-exec-167 ERROR dgr02 715x36102x1 1u1yexc /secure/QuickCreateIssue!default.jspa [atlas.plugins.requestedfiedls.JsonHttpRunner] JsonHttpRunner::getData - error renderring
java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic &lt;REDACTED&gt;=
        at ru.andreymarkelov.atlas.plugins.requestedfiedls.JsonHttpRunner.getData(  &lt;+3&gt; ( (
... etc ...

When I use a telnet client and issue an appropriate GET of the JIRA REST API URL (above) using the appropriate authorization it successfully retrieves the JSON with the right format.

$ telnet JIRAHOST 8080
Connected to JIRAHOST.
Escape character is '^]'.
GET http://JIRAHOST:8080/rest/api/2/project/KEY/components HTTP/1.1
Authorization: Basic &lt;REDACTED&gt;=

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-AREQUESTID: 816x36855x1
X-ASEN: SEN-L6132044
Set-Cookie: JSESSIONID=7CEABEBE6FF435E1CDC444955BCBE55F; Path=/; HttpOnly
X-Seraph-LoginReason: OK
Set-Cookie: atlassian.xsrf.token=BQ2Y-CZUN-AKUZ-OK1T|9a83b825ce0754230afd504759f9b763efae1009|lin; Path=/
Cache-Control: no-cache, no-store, no-transform
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Content-Length: 711
Date: Wed, 13 Jan 2016 13:36:09 GMT

This suggests that there's something wrong with the way in which the plugin is handling authenticated JSON GET requests.

Any suggestions?


2 answers

Hello, I am on this issue. Will fix soon. Thank you.

Any news on this topic?

Hi Andrey, is this problem fixed for the Jira 7.0 earlier versions?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 03, 2019 in Marketplace Apps

How to estimate projects more accurately?

Gaining insight into your team’s effectiveness and choosing the right estimation technique.   Estimating projects is hard. It is because people have the tendency to underestimate the time thin...

288 views 2 9
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you