git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Remove the requirement opaquelocktoken uri scheme

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 19, 2008, 07:32 UTC
Message-ID
<7vljucbows.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1229651491-23060-1-git-send-email-catap@catap.ru>
"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.

Previous: Kirill A. KorinskiyNext: Kirill A. Korinskiy
Message 2 of 4 in “Remove the requirement opaquelocktoken uri scheme”
  1. Remove the requirement opaquelocktoken uri schemeKirill A. Korinskiy, Dec 19, 2008
  2. Junio C HamanoDec 19, 2008
  3. Remove the requirement opaquelocktoken uri schemeKirill A. Korinskiy, Dec 20, 2008
  4. Junio C HamanoDec 20, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.