From: Thomas Schlichter <thomas.schlichter@web.de>
To: Tay Ray Chuan <rctay89@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
willievu <willievu@dev.java.net>,
Sean Davis <sdavis2@mail.nih.gov>,
git@vger.kernel.org
Subject: Re: git http-push and MKCOL error (22/409)
Date: Mon, 17 Aug 2009 07:25:09 +0200 [thread overview]
Message-ID: <200908170725.09592.thomas.schlichter@web.de> (raw)
In-Reply-To: <be6fef0d0908162158y429c4b5fgb9138151446e39ef@mail.gmail.com>
Hi,
Am Montag 17 August 2009 06:58:25 schrieb Tay Ray Chuan:
> Hi,
>
> On Mon, Aug 17, 2009 at 3:34 AM, Junio C Hamano<gitster@pobox.com> wrote:
> > The report said:
> >
> > MKCOL 98fd7fb8f32843c1bb40bd195a2f1cd6cab0751d failed, aborting
> > (22/409)
> >
> > As far as I can see you are trying (in http-push.c::start_mkcol()) to
> > create the two-hexdigit fan-out directory (i.e. "98" for this example);
> > it is strange to see a request to create the full 40-hexdigit collection
> > in the first place.
>
> Yes, you're right, but git prints out the full SHA-1 hash even though
> it is actually referring to the 2-hexdigit directory that it failed to
> create/verify, for whatever reason.
>
> > In another thread you responded to earlier:
> >
> >
> > http://thread.gmane.org/gmane.comp.version-control.git/125933/focus=1259
> >72
> >
> > the original report did not give the exact error message, but in that
> > one, instead of failing to create 40-hexdigit collection like this, I am
> > guessing that it fails with something like "MKCOL 'refs' failed".
>
> I guess by "original report" you refer to Thomas' initial email: yes,
> he (unwittingly) did provide theerror code in the subject line, the
> part which says (22/409). It actually means (<curl return code>/<http
> return code>). Referring again to
> http://www.webdav.org/specs/rfc4918.html#rfc.section.9.3.1:
>
> 409 (Conflict) - A collection cannot be made at the Request-URI until
> one or more intermediate collections have been created. The server
> must not create those intermediate collections automatically.
>
> meaning one or more parent directories weren't created.
>
> Based on this and his procedure, I'm guessing that there's something
> wrong with his setup.
>
> > *1* Not necessarily in the sense the client is broken but in the sense
> > that the server-client combination does not work for the reporter.
>
> Indeed.
Hmm. I hope you won't take this as an argument for not fixing it, because it
is a clear regression! I tried git version 1.6.3.4, and it works flawlessly
with exactly this server! Even during bisecting, some versions worked, some
didn't (these after the mentioned commit...)
So I think this commit didn't only refactor things, but unintentionally
changed the behavior. And this must be the problem. As I'm not into this code,
and the refactoring was not completely trivial, I was not able to quickly find
the place where the behavior was changed...
Kind regards,
Thomas Schlichter
next prev parent reply other threads:[~2009-08-17 5:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-16 13:57 git http-push and MKCOL error (22/409) Thomas Schlichter
2009-08-16 14:27 ` Tay Ray Chuan
2009-08-16 14:52 ` Thomas Schlichter
2009-08-17 4:52 ` Tay Ray Chuan
2009-08-17 5:18 ` Thomas Schlichter
2009-08-17 5:34 ` Thomas Schlichter
2009-08-16 19:34 ` Junio C Hamano
2009-08-17 4:58 ` Tay Ray Chuan
2009-08-17 5:25 ` Thomas Schlichter [this message]
2009-08-17 6:08 ` Junio C Hamano
2009-08-17 9:09 ` Tay Ray Chuan
2009-08-17 17:28 ` Thomas Schlichter
-- strict thread matches above, loose matches on Subject: below --
2008-09-22 23:51 Sean Davis
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=200908170725.09592.thomas.schlichter@web.de \
--to=thomas.schlichter@web.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=rctay89@gmail.com \
--cc=sdavis2@mail.nih.gov \
--cc=willievu@dev.java.net \
/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).