Forums

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

REST API App Broke on upgrade to 7.9.2

Sean Yocum
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!
May 30, 2018

Hello, I have an application that was working perfectly using REST API v2 for almost a year.  We upgraded to the latest
JIRA version we have access to on the cloud (7.9.2) and now my application is throwing 400 - Bad Web Request errors, and the queries when CURL'd are returning this error:

<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="xxxxxxx">here</a></body>

I realize this might be simply a change in how JQL queries are constructed, but without a clue I'm not sure where to go to correctly resolve the queries in my application.

I'm also concerned that the requirements to log in to JIRA have changed as well, which would result in a change in my authent code.

Any help would be most appreciated.  Please ask questions, there is probably more info that someone needs to know to help, but I don't know what that would be until I'm told.

Is there updated documentation covering this cloud version of JIRA?  That alone would be a huge help.

Thanks!

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 31, 2018

You mentioned using 7.9.2, what version of Jira were you using before this upgrade?

I am confused by which product you have here.   You have used both Jira Server and Jira Cloud specific terms here.    Jira Cloud is a different product that is hosted by Atlassian.  If you have this, then your site will have a atlassian.net or jira.com domain for legacy accounts.

If your Jira site has this address, then the REST APIs are documented in https://developer.atlassian.com/cloud/jira/platform/rest/

However if you're using a 3rd party to host your Jira site, such as AWS, Azure, Contegix, etc, then you actually aren't using Jira Cloud, but rather a Jira Server product that is hosted in a cloud provider.   In those cases, then your REST API is going to be dictated by this guide: https://developer.atlassian.com/server/jira/platform/rest-apis/

There are differences between these two products in regards to accepted means of authentication, and even specific REST endpoints that can be called.   But even between versions of Jira Server, there are differences that can exist in the REST API, but these should be documented.  You can find a big list of REST API versions by going to https://docs.atlassian.com/software/jira/docs/api/REST/

Perhaps you can compare the latest version against your previous version to see what changes exist in the REST API.

Sean Yocum
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!
May 31, 2018

Thank you for your swift answer, Andrew.  It turns out I solved the problem this morning.

We do have the cloud server, but the updates were applied from 7.2.x to 7.9.2.  

After reading closely and experimenting with CURL I determined that my application was calling HTTP.  All CURL API calls failed with "Object Moved" error.  When I called with HTTPS, everything worked.

Went into my application and changed my root path in the URL constructor to HTTPS and everything is working fine again.  

It seems at some point using HTTPS port became enforced.

I did a cursory look for any mention of this in the documentation but didn't find it.  It could be buried in any number of the incremental upgrade docs.  Since an educated guess got things working, I didn't look too hard.

Hopefully this will help out anyone else that runs across this issue.

Thank you again Andrew!

Sean

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events