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

3 votes
Accepted answer

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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,309 views 12 19
Read article

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