Hi all,
I'm developping plugins for Jira 5.1. Actually, I need to use json data returned from a rest service.
I have the following code:
jQuery.getJSON("http://myhost.xx/myservice")
.success(function(data){
alert("success!!!!!!");
})
.error(function(jqXhr, textStatus, error) {
alert("ERROR: " + textStatus + ", " + error);
});
The funny thing is that, even I can see a correct response (200 accept, correct content type (text/json), correct body) with my http debugger (Fiddler), I only enter the "error" handler and I see "OK" for both textStatus and error parameters, ending in displaying the alert "ERROR: OK, OK" in my browser...
Any idea? Is there any known bug with the javascript shipped with Jira 5.1?
Thanks a lot !