git push failure over webdav if no trailing slash on URL

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

 



I just discovered a failure mode when pushing over webdav.

I did a clone akin to:

git clone http://NAME:PW@SITE/git/foo/bar

and was unable to push with just a

git push

I watched with ngrep and found that git-http-push authenticated
after the initial connect, got a 100 reply with a Location header
of /git/foo/bar/ (note the trailing slash), authenticated again,
got another 100 reply OKing the 2nd authentication and then failed
to continue.

If instead I ran:

git push http://NAME:PW@SITE/git/foo/bar/

(specifying that trailing slash) everything worked as expected.

This occured with each of git 1.4.2.1 and 1.5.0.2.  (In both cases
as packaged by debian.)

NB that the use of webdav wasn't my choice.

Nor was http rather than https.

-
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]