{"thread":{"id":"26940","subject":"Re: [msysGit] Git fails to push to secured webdav","startedAt":"2011-03-31T09:57:58Z","lastAt":"2011-03-31T09:57:58Z","messageCount":1,"participants":["Erik Faye-Lund"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"164767","messageId":"AANLkTikEnFCUQvEHA6c5PAs_z-_REj9SqNfRjZ_9edzN@mail.gmail.com","threadId":"26940","inReplyTo":"4D944EE0.3090806@gmail.com","subject":"Re: [msysGit] Git fails to push to secured webdav","fromName":"Erik Faye-Lund","fromEmail":"kusmabite@gmail.com","sentAt":"2011-03-31T09:57:58Z","receivedAt":"2011-03-31T09:57:58Z","isPatch":false,"sender":{"key":"kusmabite@gmail.com","avatar":"https://avatars.githubusercontent.com/u/47073?v=4"},"body":"Please don't cull the CC-list (hit \"reply all\" in your mailing list).\nI'm not personally interested in the subject, so I'm not a likely\nperson to get help from.\n\nOn Thu, Mar 31, 2011 at 11:52 AM, Edwin Amsler <edwinguy@gmail.com> wrote:\n> On 2011-03-31 4:19 AM, Erik Faye-Lund wrote:\n>>\n>> On Thu, Mar 31, 2011 at 11:06 AM, RandomInsano<edwinguy@gmail.com>  wrote:\n>>>\n>>> Aloha!\n>>>\n>>> I built a simple WebDAV share on my server. WebDAV is working\n>>> marvelously! Git isn't :(\n>>>\n>>> Basically, when I auth with the server, git doesn't use those\n>>> credentials when it does a WebDAV PROPFIND command, so it recieves a\n>>> 401 not authorized response.\n>>>\n>>> This is the back and forth between git and my webserver:\n>>>\n>>> [Initial push, failing due to security settings[\n>>> 10.0.0.100 - - [31/Mar/2011:03:48:27 -0500] \"GET /dav/git/coral.git/\n>>> info/refs?service=git-receive-pack HTTP/1.1\" 401 409\n>>> 10.0.0.100 - - [31/Mar/2011:03:48:31 -0500] \"GET /dav/git/coral.git/\n>>> info/refs?service=git-receive-pack HTTP/1.1\" 401 409\n>>> [Git has now asked for my password]\n>>> 10.0.0.100 - edwin [31/Mar/2011:03:48:31 -0500] \"GET /dav/git/\n>>> coral.git/info/refs?service=git-receive-pack HTTP/1.1\" 200 0\n>>> 10.0.0.100 - edwin [31/Mar/2011:03:48:31 -0500] \"GET /dav/git/\n>>> coral.git/HEAD HTTP/1.1\" 200 23\n>>> [Woo! Auth'd!]\n>>> 10.0.0.100 - - [31/Mar/2011:03:48:32 -0500] \"PROPFIND /dav/git/\n>>> coral.git/ HTTP/1.1\" 401 397\n>>> [WTF?! FAIL!]\n>>>\n>>> Any ideas what's causing this? Which libraries are to blame, etc?\n>>>\n>> Didn't you already report this to the main Git list yetsterday?\n>>\n>> http://article.gmane.org/gmane.comp.version-control.git/170280\n>>\n>> Besides, it seems to me that this question has been asked and answered\n>> before:\n>>\n>> http://article.gmane.org/gmane.comp.version-control.git/105397\n>\n> Indeed I did report to the main list! Sometimes it's best to ask at multiple\n> sources, despite the annoyance for those who are members of both groups.\n> Sorry for the double post for you.\n>\n> The problem you referenced (git/webdav is refusing to authenticate properly)\n> has the issue that git never tried to authenticate. Mine did. Then just\n> forgot to use the authentication.\n>\n\nDid you setup your .netrc file like\nDocumentation/howto/setup-git-server-over-http.txt tells you to?\n\nhttp://git.kernel.org/?p=git/git.git;a=blob;f=Documentation/howto/setup-git-server-over-http.txt;h=622ee5c8dd7c384794a21baa6093d85a47f89a54;hb=HEAD\n"}]}