Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [msysGit] Git fails to push to secured webdav

From: Erik Faye-Lund <hidden>
Date: 2016-06-15 22:50:57

Please don't cull the CC-list (hit "reply all" in your mailing list).
I'm not personally interested in the subject, so I'm not a likely
person to get help from.

On Thu, Mar 31, 2011 at 11:52 AM, Edwin Amsler [off-list ref] wrote:
On 2011-03-31 4:19 AM, Erik Faye-Lund wrote:
quoted
On Thu, Mar 31, 2011 at 11:06 AM, RandomInsano[off-list ref]  wrote:
quoted
Aloha!

I built a simple WebDAV share on my server. WebDAV is working
marvelously! Git isn't :(

Basically, when I auth with the server, git doesn't use those
credentials when it does a WebDAV PROPFIND command, so it recieves a
401 not authorized response.

This is the back and forth between git and my webserver:

[Initial push, failing due to security settings[
10.0.0.100 - - [31/Mar/2011:03:48:27 -0500] "GET /dav/git/coral.git/
info/refs?service=git-receive-pack HTTP/1.1" 401 409
10.0.0.100 - - [31/Mar/2011:03:48:31 -0500] "GET /dav/git/coral.git/
info/refs?service=git-receive-pack HTTP/1.1" 401 409
[Git has now asked for my password]
10.0.0.100 - edwin [31/Mar/2011:03:48:31 -0500] "GET /dav/git/
coral.git/info/refs?service=git-receive-pack HTTP/1.1" 200 0
10.0.0.100 - edwin [31/Mar/2011:03:48:31 -0500] "GET /dav/git/
coral.git/HEAD HTTP/1.1" 200 23
[Woo! Auth'd!]
10.0.0.100 - - [31/Mar/2011:03:48:32 -0500] "PROPFIND /dav/git/
coral.git/ HTTP/1.1" 401 397
[WTF?! FAIL!]

Any ideas what's causing this? Which libraries are to blame, etc?
Didn't you already report this to the main Git list yetsterday?

http://article.gmane.org/gmane.comp.version-control.git/170280

Besides, it seems to me that this question has been asked and answered
before:

http://article.gmane.org/gmane.comp.version-control.git/105397
Indeed I did report to the main list! Sometimes it's best to ask at multiple
sources, despite the annoyance for those who are members of both groups.
Sorry for the double post for you.

The problem you referenced (git/webdav is refusing to authenticate properly)
has the issue that git never tried to authenticate. Mine did. Then just
forgot to use the authentication.
Did you setup your .netrc file like
Documentation/howto/setup-git-server-over-http.txt tells you to?

http://git.kernel.org/?p=git/git.git;a=blob;f=Documentation/howto/setup-git-server-over-http.txt;h=622ee5c8dd7c384794a21baa6093d85a47f89a54;hb=HEAD
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help