Authorization failed when trying to get incoming changes
Niko Schmuck
niko at folge3.de
Tue Jul 27 21:14:20 UTC 2010
Hi together,
Although my mercurial user has read access to a hg(webdir) repo, the user is not allowed to get the incoming changes (as requested by Hudson via hgwebdir)
ERROR: Failed to determine incoming changes
- Server runs Mercurial version 1.3.1
- Client runs Mercurial version 1.5.2
Any hints on why this happens and can be solved are highly appreciated.
Thanks,
Niko
============================================================
Issued command:
$ hg incoming --debug --bundle hg.bundle --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n" --rev default
using https://example.com/hg/myrepo
sending between command
HTTP Auth: Benutzer myuser, Passwort********
Vergleiche mit https://example.com/hg/myrepo
sending capabilities command
HTTP Auth: Benutzer myuser, Passwort********
capabilities: unbundle=HG10GZ,HG10BZ,HG10UN branchmap lookup changegroupsubset
sending lookup command
HTTP Auth: Benutzer myuser, Passwort********
Suche nach Änderungen
sending branches command
HTTP Auth: Benutzer myuser, Passwort********
examining a69c1a5e3bb6:671601c37077
found incomplete branch a69c1a5e3bb6:671601c37077
searching: 1 queries
sending between command
HTTP Auth: Benutzer myuser, Passwort********
narrowing 1:4 a07b584aa960
narrowing 2:4 c718c334e7ce
narrowing 4:4 ed5d75ebc49a
narrowed branch search to c718c334e7ce:ed5d75ebc49a
searching: 2 queries
sending between command
HTTP Auth: Benutzer myuser, Passwort********
narrowing 1:2 d5ca76664a04
found new branch changeset c718c334e7ce
found new changesets starting at c718c334e7ce
2 total queries
sending changegroupsubset command
Abbruch: authorization failed
============================================================
Client ~/.hgrc:
[auth]
f3.prefix = example.com/hg
f3.username = myuser
f3.password = ...
f3.schemes = https
============================================================
hgwebdir access in Apache log:
192.168.10.3 - myuser [27/Jul/2010:22:27:56 +0200] "GET /hg/myrepo?cmd=capabilities HTTP/1.1" 200 64 "-" "mercurial/proto-1.0"
192.168.10.3 - - [27/Jul/2010:22:27:56 +0200] "GET /hg/myrepo?cmd=lookup&key=default HTTP/1.1" 401 651 "-" "mercurial/proto-1.0"
192.168.10.3 - myuser [27/Jul/2010:22:27:56 +0200] "GET /hg/myrepo?cmd=lookup&key=default HTTP/1.1" 200 43 "-" "mercurial/proto-1.0"
192.168.10.3 - - [27/Jul/2010:22:27:56 +0200] "GET /hg/myrepo?nodes=a69c1a5e3bb6dc820c968b4837b3fe8f07eaa56b&cmd=branches HTTP/1.1" 401 651 "-" "mercurial/proto-1.0"
192.168.10.3 - myuser [27/Jul/2010:22:27:57 +0200] "GET /hg/myrepo?nodes=a69c1a5e3bb6dc820c968b4837b3fe8f07eaa56b&cmd=branches HTTP/1.1" 200 164 "-" "mercurial/proto-1.0"
192.168.10.3 - - [27/Jul/2010:22:27:57 +0200] "GET /hg/myrepo?pairs=a69c1a5e3bb6dc820c968b4837b3fe8f07eaa56b-671601c37077e118cbd41e7d3914cf645b383488&cmd=between HTTP/1.1" 401 651 "-" "mercurial/proto-1.0"
192.168.10.3 - myuser [27/Jul/2010:22:27:57 +0200] "GET /hg/myrepo?pairs=a69c1a5e3bb6dc820c968b4837b3fe8f07eaa56b-671601c37077e118cbd41e7d3914cf645b383488&cmd=between HTTP/1.1" 200 123 "-" "mercurial/proto-1.0"
192.168.10.3 - - [27/Jul/2010:22:27:57 +0200] "GET /hg/myrepo?pairs=c718c334e7ce06c367b5c2e5a2d735c00ca7b462-ed5d75ebc49add433ca54beda732bd9d6e6c261b&cmd=between HTTP/1.1" 401 651 "-" "mercurial/proto-1.0"
192.168.10.3 - myuser [27/Jul/2010:22:27:57 +0200] "GET /hg/myrepo?pairs=c718c334e7ce06c367b5c2e5a2d735c00ca7b462-ed5d75ebc49add433ca54beda732bd9d6e6c261b&cmd=between HTTP/1.1" 200 41 "-" "mercurial/proto-1.0"
192.168.10.3 - - [27/Jul/2010:22:27:58 +0200] "GET /hg/myrepo?bases=c718c334e7ce06c367b5c2e5a2d735c00ca7b462&cmd=changegroupsubset&heads=a69c1a5e3bb6dc820c968b4837b3fe8f07eaa56b HTTP/1.1" 401 651 "-" "mercurial/proto-1.0"
More information about the Mercurial
mailing list