JIRA REST request without timestamp (?_=2351453145)

pelizza
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2015

Hi,

I'm working on a plugin project that uses AngularJS and the JQuery used inside Angular's environment is not the AJS.$.

Since I'm using a different JQuery, my requests to the JIRA REST API has no query string with the timestamp (eg. /rest/api/2/project/_=12351345234). If I run the same request using AJS.$, the timestamp is added as a query string.

This is causing a 403 (Forbidden) status when doing the request with AngularJS, but just in some servers - I don't know what difference on the server may be causing this...


Is this a normal behaviour? Why am I getting the forbidden status just for not adding the query string?

 

Thanks,

Vitor

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
pelizza
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 6, 2015

Sure, it's for cache busting. I'm very sure the credentials are valid. When I use the Chrome's console to do both requests (one with the query string and another without), just the one with the query string works. The request headers are exactly the same.

0 votes
Sergey Svishchev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 5, 2015

Timestamp is for cache busting, I believe. are the auth credentials valid?

TAGS
AUG Leaders

Atlassian Community Events