Mercurial access forbidden, but no password dialog

Matt Mackall mpm at selenic.com
Fri Jul 25 13:20:43 UTC 2014


On Wed, 2014-07-23 at 19:59 +0200, Michael Augustin wrote:
> Hi all,
> 
> I'm using thg since a long time. Now I had the problem, that my
> password changed and on the next pull from the hg-server I just became
> "403: Forbidden" error, instead of a password prompt. Since I'm on
> Windows 7 and the keystore extension is activated, the password is
> stored in the "Anmeldeschl??sselverwaltung" (i don't know the english
> name).
> 
> I found out that after removing the Mercurial key from this tresor, I
> got a password request dialog on the next pull and all worked fine.
> 
> Does anyone know, why there is no password request when the stored
> password in the keystore is wrong?

Yep. It's because 403 is the wrong HTTP error code:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

        10.4.4 403 Forbidden
        The server understood the request, but is refusing to fulfill
        it. Authorization will not help and the request SHOULD NOT be
        repeated.

Since Mercurial itself doesn't do HTTP auth, this is a bug in your web
server. 

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list