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

REST API URI Duplication on JIRA 8.0 Edited

After installing the REST API browser all of the api/2 calls are listed like the screen cap below. Any idea how to fix this so the API browser is not duplicating the api/2 and thus breaking the ability to use API testing functionality within the browser.

 

restAPI.PNG

 

3 answers

0 votes

You need to fix whatever it is in the browser doing this duplication.  Jira is not presenting duplicates.

Yet Chrome, Firefox and Edge all display like this. Not sure how this could be a browser issue?

duplicatedRESTAPI.PNG

There's no duplication in there.

Every API listed with an api/2 has an extra api/2. Using the API browser to issue a GET yields a 404.

Example:

https://myserver.mydomain.edu:8443/rest/api/2/api/2/search?jql=project%3Dtechops (404)

Open a new tab, paste the same string into the address bar with the extra api/2 removed and it works as expected.

https://myserver.mydomain.edu:8443/rest/api/2/search?jql=project%3DTECHOPS

The documentation located here enumerated point #5 clearly shows a RAB with correctly formatted API strings. 

Ahh, I see.  There's definitely a problem here, but I don't think it's Jira itself and I'm not sure it's a "bug".  I'd take a guess that Tomcat is misconfigured or something in your network routing.

The reason I say that is the evidence could be paraphrased as:

  • Jira responds on the correct url
  • Browsers are telling us a url which has part of it repeated (but those urls do not respond)

So, there's something getting the wrong urls - you've tried three browsers, which suggests it's not them, but that shifts the question to "what are they asking for when getting the list of urls?", as we'd need to look at that to see why it is responding with chunks of repeated url.

Like # people like this
0 votes

Hi! 

 

Could you check the context path, please?

https://confluence.atlassian.com/jirakb/how-to-change-the-jira-application-context-path-225119408.html

 

Also, could reproduce it on test env ? :) 

If not, time to restart with clean felix cache

 

Cheers,

Gonchik Tsymzhitov

Context path is default and this is installed on my dev env. I just noticed someone else has the same problem posted in the reviews on 2019-02-25. Since this is "unsupported" I probably don't have much recourse. Running 8.0 now. Doubt upgrading to 8.0.1 will fix the problem but can give it try.

We do have the same behavior on our environement, Context Path is empty. It is a Linux installation.

Jira: 8.1.0
REST API Browser: 3.2.2

Seen as well on 8.0.2, REST API Browser 3.2.2, very annoying ...

A year later it's still an issue and the referenced bug was downgraded from "HIGH" priority with the reasoning that the team has no plans to work on it, thus it's not a high priority issue.

0 votes
Edward Atlassian Team May 06, 2020

Hi Team! The REST API browser has been hardened against this - Please upgrade to the latest version.
Please see https://ecosystem.atlassian.net/browse/RAB-31

Suggest an answer

Log in or Sign up to answer
TAGS

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