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

Re: [PATCH] handle_remote_ls_ctx can parsing href starting at http://

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 25, 2008, 07:04 UTC
Message-ID
<7vmyekag6p.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1230021075-10113-1-git-send-email-catap@catap.ru>
"Kirill A. Korinskiy" <catap@catap.ru> writes:
Show 11 quoted lines
> The program call remote_ls() to get remote objects over http;
> handle_remote_ls_ctx() is used to parse it's response to populated
> "struct remote_ls_ctx" that is returned from remote_ls().
>
> The handle_remote_ls_ctx() function assumed that the server will
> returned local path in href field, but RFC 4918 demand of support full
> URI (http://localhost/repo.git for example).
>
> This resulted in push failure (git-http-push ask server
> PROPFIND /repo.git/alhost:8080/repo.git/refs/) when a server returned
> full URI.
Thanks.

Do you mean PROPFIND was made to that garbage with :8080 in it when the server returned a full URI http://localhost/repo.git as in the example in the previous paragraph, or are you using a different example here?

I am contemplating of munging your commit log message like this...
commit e1f33efe07b9a520505fccd71bea1292fc9448dd
Author: Kirill A. Korinskiy <catap@catap.ru>
Date:   Tue Dec 23 11:31:15 2008 +0300
    http-push: support full URI in handle_remote_ls_ctx()
    
    The program calls remote_ls() to get list of files from the server over
    HTTP; handle_remote_ls_ctx() is used to parse its response to populate
    "struct remote_ls_ctx" that is returned from remote_ls().
    
    The handle_remote_ls_ctx() function assumed that the server returns a
    local path in href field, but RFC 4918 (14.7) demand of support full URI
    (e.g. "http://localhost:8080/repo.git").
    
    This resulted in push failure (e.g. git-http-push issues a PROPFIND
    request to "/repo.git/alhost:8080/repo.git/refs/" to the server).
    
    Signed-off-by: Kirill A. Korinskiy <catap@catap.ru>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Previous: Kirill A. KorinskiyNext: Kirill A. Korinskiy
Message 2 of 7 in “handle_remote_ls_ctx can parsing href starting at http://”
  1. handle_remote_ls_ctx can parsing href starting at http://Kirill A. Korinskiy, Dec 23, 2008
  2. Junio C HamanoDec 25, 2008
  3. http-push: support full URI in handle_remote_ls_ctx()Kirill A. Korinskiy, Dec 29, 2008
  4. Mike HommeyDec 29, 2008
  5. http-push: support full URI in handle_remote_ls_ctx()Kirill A. Korinskiy, Jan 2, 2009
  6. Junio C HamanoJan 2, 2009
  7. Junio C HamanoDec 29, 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.