git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Kirill A. Korinskiy" <catap@catap.ru>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Remove the requirement opaquelocktoken uri scheme
Date: Thu, 18 Dec 2008 23:32:51 -0800	[thread overview]
Message-ID: <7vljucbows.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <1229651491-23060-1-git-send-email-catap@catap.ru> (Kirill A. Korinskiy's message of "Fri, 19 Dec 2008 04:51:31 +0300")

"Kirill A. Korinskiy" <catap@catap.ru> writes:

> Server can use any URI for token by rfc 4918 section 6.5 paragraph five
>
> Signed-off-by: Kirill A. Korinskiy <catap@catap.ru>

Could you give a bit more high-level background information behind this
patch?

I can make a guess without knowing much about DAV that this might be...

  The program flow of pushing over http is:

   - call lock_remote() to issue a DAV_LOCK request to the server to lock
     info/refs and branch refs being pushed into; handle_new_lock_ctx() is
     used to parse its response to populate "struct remote_lock" that is
     returned from lock_remote();

   - send objects;

   - call unlock_remote() to drop the lock.

  The handle_new_lock_ctx() function assumed that the server will use a
  lock token in opaquelocktoken URI scheme, which may have been an Ok
  assumption under RFC 2518, but under RFC 4918 which obsoletes the older
  standard it is not necessarily true.

  This resulted in push failure (often resulted in "xxxxx" error message)
  when talking to a server that does not use opaquelocktoken URI scheme.

But I shouldn't have to guess or write the commit log message for you.

Giving a bit higher level background is important for people who may have
seen the error message (so filling in the "xxxxx" blank in the above
hypothetical commit log message is *important*) to find your message and
try your commit to see if it fixes the issue for them.

  reply	other threads:[~2008-12-19  7:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-19  1:51 [PATCH] Remove the requirement opaquelocktoken uri scheme Kirill A. Korinskiy
2008-12-19  7:32 ` Junio C Hamano [this message]
2008-12-20  6:19   ` Kirill A. Korinskiy
2008-12-20 20:09     ` Junio C Hamano

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=7vljucbows.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=catap@catap.ru \
    --cc=git@vger.kernel.org \
    /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).