Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JSONObject["name"] not found

Deleted user
February 20, 2020

When I try to get details about my Jira projects, in the class JsonParseUtil, parseBasicUser method, the code look for the field "name" in the "reporter" group.

But my Json delivered doesn't contains it:

{
"self":"",
"accountId":"",
"emailAddress":"",
"avatarUrls":{
},
"displayName":"",
"active":,
"timeZone":"America\/Sao_Paulo",
"accountType":"atlassian"
}

 There's some update that removed the field?

2 answers

1 vote
Guillaume Maury
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 15, 2011

I found the issue, by default nginx tries to correct the redirect location from a proxy by replacing the proxied hostname with the correct hostname. The problem is that by setting proxyName, jira was redirecting to the correct hostname already which caused the problem.

So for example when going to http://jira.example.com it would send back a redirect to http://jira.example.com/secure/Dashboard.jspa which was replaced by nginx with .example.com/secure/Dashboard.jspa

The fix for this is to add proxy_redirect off; in the location / block.

0 votes
Victor Chirita
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 16, 2017

Yep, that did the trick, thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events