Read authorization error on server

Morten H. Pedersen morten at strangeped.dk
Thu Dec 27 23:47:59 UTC 2012


Hi all
 
I have started to use Mercurial at my job, and to learn using it I have set up my own Mercurial server (WinXp, Apache 2.2.22, Python 2.6.6, Mercurial 2.2.1, mod_wsgi-win32-app22py26-3.3.so) at home, which basically works fine. The PC from which I access the server is Win7 32, Tortoise 2.6.1. I have basic HTTP authentication working in Apache, although it is disabled for now, so no authentication is required. This works fine, as long as I allow anyone to read:
 
allow_push=*
allow_read=*
 
If I change to "allow_read=MHP" I get "authorization failed" from mercurial whenever I try to clone from the server. My username is set correctly, as shown by hg showconfig: C:\Users\Morten\.hgrc:3: ui.username=MHP. I have tried to log the HTTP traffic, which shows 3 requests to the server:
 
GET http://srangeped.dk/hg/A?cmd=capabilities HTTP/1.1 GET http://srangeped.dk/hg/A?cmd=batch HTTP/1.1 GET http://srangeped.dk/hg/A?cmd=getbundle HTTP/1.1
 
but none of these actually contains the user name! Looks to me like Mercurial is simply ignoring the username when cloning from a URL. I have found a thread describing what looks like my problem:
 
http://selenic.com/pipermail/mercurial/2012-December/044695.html.
 
but the only explanation given is that this is known to happen on a nginx server. Apart from this thread most similar threads are all concerned with pushing or HTTP authentication. 
 
It looks to me like this is a client side problem, as the user name is never supplied to the server. Is this assumption correct? 
 
Any help is highly appreciated......
 
Br
Morten
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20121228/cd4612b6/attachment-0002.html>


More information about the Mercurial mailing list