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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <edwinguy@xxxxxxxxx> wrote:
> On 2011-03-31 4:19 AM, Erik Faye-Lund wrote:
>>
>> On Thu, Mar 31, 2011 at 11:06 AM, RandomInsano<edwinguy@xxxxxxxxx>  wrote:
>>>
>>> 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]