Forums

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

Ajax post call authorization error.

Josh Faulk April 25, 2012

I recently upgraded from 4.2 (to 5.0), and now a gadget that I made is no longer working.

The part of the gadget that is not working is the ajax post call to a .jsp page.

var myStuff = "ActionType=GetListOfUsers&EventID=&User=&JiraKey=&Comments=&StartTime=&EndTime=";

$.ajax({

type:"post",

async:false,

url:"http://localhost:8080/MyGadget/CalendarEditTest.jsp",

data:myStuff,

dataType:"text",

success: function(msg){

// This is not returning value

// Instead I get the Error below:

},

error:function (xhr, ajaxOptions, thrownError){

alert("Error: " + xhr.status);

}

});

ERROR:

You are not authorized to perform this operation. Please try to <a href='/login.jsp?os_destination=%2FMyGadget%2FCalendarEditTestV3.jsp'>log in

Is there a setting in jira to allow for this?

I already have

Accept remote API calls set to true

As well, i have the

jira.websudo.is.disabled = true

Any help would be greatly appreciated. Thank you.

Other things I've tried include:

url:"/MyGadget/CalendarEditTest.jsp",

1 answer

0 votes
Josh Faulk April 26, 2012

Ok, this was a non issue. It was making the call successfully and the issue was on the JSP page (the user tables changed in the jiradb from 4.2 to 5.0)

Suggest an answer

Log in or Sign up to answer
TAGS
Atlassian, Team '25 Europe, Atlassian conference, AI-powered teamwork, Atlassian events, keynote speakers, Barcelona tech conference, Atlassian Williams Racing, Carlos Sainz, Jenson Button, Mike Cannon-Brookes, Anu Bharadwaj, Atlassian Rovo

Atlassian Williams Racing is coming to Team '25 Europe 🏎️

Discover the teamwork and precision behind success on and off the track. See how this high-performing team makes the impossible possible. Be one of the first 100 customers to register for a chance to win 2 tickets to an Atlassian Williams 2026 race.

Register now
AUG Leaders

Atlassian Community Events