Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Missing authentication dialog with error handler "custom redirection" #1184
I'm facing a problem which looks like a bug which was solved a while back (though I can't find the issue# anymore...), but seems to have reappeared between version 1.2.98 and 1.2.99:
I've defined a behavior rule of type Directory for a Web Directory called /service. For that, authentication validation mechanism is set to Plain text file, method to Basic, realm, userlist and password file are supplied.
Everything works as supposed up to this point: trying to open the URL opens an authentication dialog. Cancelling the dialog leads to the internally generated error 401 page (authorization required).
Now, when changing the error handler from Default handlers to Custom redirections and trying to redirect error 401 to a custom page (e.g. /401.html, type internal), the authentication dialog is skipped and the redirection page is shown immediately, without ever having the chance to provide the credentials.
As mentioned, earlier versions showed the expected behavior. I've tested versions 1.2.1, 1.2.2, 1.2.98 successfully, but couldn't find any working version thereafter (incl. the latest version from the git repo).
Any idea what the problem could be?
Thanks in advance & best regards,