Project

General

Profile

Http basic auth / 401 response in IE9

Added by Tor Knutsson over 12 years ago

Hello. We are evaluating redmine as a replacement for our highly expensive project mgmt system. It seems awesome. Being in a very microsoft environment, I have installed Redmine with plugin Redmine backlogs on a IIS7 server under windows 2003. I installed it using Helicon Zoo's web installer bundle. The version is Redmine 1.2.1.stable (SQLite). It works like a charm except in IE9 where users are unable to login. They are constantly asked for credentials with a http/1.1 401 error, with a basic realm called "Redmine API".

I thought it sounded weird, as it's not an API I'm using, just normal usage from IE9. So I searched for the phrase "Redmine API" in the source. I found three lines in a file called application_controller.rb: 135, 136, 137. I commented them out and restarted the application - and now users can login as usual in IE9, just as in firefox & chrome.

So that's the workaround I will be using for the moment, as I'm not using the API features. I thought I'd drop a note here in case we'd use the Api features later on, if someone else has the same problem, or if there might be a nicer workaround. I'm guessing this is related to how badly IIS works with custom (non-iis) basic authentication, but that's just a hunch...