git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Erik Faye-Lund <kusmabite@gmail.com>
To: Edwin Amsler <edwinguy@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>,
	msysGit <msysgit@googlegroups.com>
Subject: Re: [msysGit] Git fails to push to secured webdav
Date: Thu, 31 Mar 2011 11:57:58 +0200	[thread overview]
Message-ID: <AANLkTikEnFCUQvEHA6c5PAs_z-_REj9SqNfRjZ_9edzN@mail.gmail.com> (raw)
In-Reply-To: <4D944EE0.3090806@gmail.com>

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@gmail.com> wrote:
> On 2011-03-31 4:19 AM, Erik Faye-Lund wrote:
>>
>> On Thu, Mar 31, 2011 at 11:06 AM, RandomInsano<edwinguy@gmail.com>  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

           reply	other threads:[~2011-03-31  9:58 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <4D944EE0.3090806@gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTikEnFCUQvEHA6c5PAs_z-_REj9SqNfRjZ_9edzN@mail.gmail.com \
    --to=kusmabite@gmail.com \
    --cc=edwinguy@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=msysgit@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).