400 (Bad Request) Running JIRA through IIS7

I'm running JIRA through IIS7 following the instructions found here https://confluence.atlassian.com/display/JIRA051/Integrating+JIRA+with+IIS

Every time I do something in JIRA that would return a JIRA error message such as "Field is required" I instead get a 400 (Bad Request) back from IIS.

For example, when I try to create an issue and skip a required field when I click the "Create" button nothing happens, I get no message saying that the field is required. But when I look in the console in Chrome (This happens in all broswers btw) I see the following:

POST https://myjiradomain.com/issues/secure/QuickCreateIssue.jspa?decorator=none 400 (Bad Request)

If I fill out the issue fields fully I'm able to create the issue with no problems. The only difference between the two requests is that the content type of the request where the fields are not filled out is text/html and the request where the fields are filled out is application/json. I'm not sure if this is significant but I thought I'd mention it.

Any insight on this issue would be greatly appreciated.

1 answer

1 accepted

I found the solution to this issue here http://stackoverflow.com/questions/8346836/cannot-return-custom-http-error-details-remotely.

As the solution on stackoverflow mentions all I needed to do was add errorMode="Detailed" to the web.config (see below) that's in the folder you setup in IIS for JIRA.

<system.webServer>
    <httpErrors errorMode="Detailed" />
</system.webServer>

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

809 views 2 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you