All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David ‘Bombe’ Roden" <bombe@pterodactylus.net>
To: git@vger.kernel.org
Subject: Re: [PATCH] handle http urls with query string ("?foo") correctly
Date: Thu, 5 Jun 2008 10:37:58 +0200	[thread overview]
Message-ID: <200806051037.58675.bombe@pterodactylus.net> (raw)
In-Reply-To: <7vtzg82u18.fsf@gitster.siamese.dyndns.org>

[-- Attachment #1: Type: text/plain, Size: 1285 bytes --]

On Thursday 05 June 2008 09:57:39 Junio C Hamano wrote:

> my understanding is that this peculiar http-hosted git repository
> takes:
> 	http://foo.bar.xz/serve.cgi?repo=foo.git/
> as the base URL, and the patch author wants us to ask for (for example)
> "info/alternates" as
> 	http://foo.bar.xz/serve.cgi/info/alternates?repo=foo.git/

Actually the base URL is more like

	http://foo.bar.xz/foo.git/0?type=text/plain

and I want to retrieve objects with

	http://foo.bar.xz/foo.git/0/info/refs?type=text/plain

but the gist is basically the same. My patch will indeed break git for URLs 
like the one you gave.


>  (2) If that is indeed the issue being tackled, sorry, it is not how "dumb
>      protocol" http server is expected to behave.  Your server needs
>      fixing.
> If the protocol being used is still the "dumb commit walker" protocol,
> then, given the base URL of the repository $URL, "info/refs" must exist at
> "$URL/info/refs", and a loose object deadbeef... must exist at
> "$URL/objects/de/adbeef...".  That's how the protocol is defined.

If that is indeed the case, you're right. That could probably be tackled by 
some small fixes in Freenet's http-gateway. I'll talk to the other developers 
about that.


Thanks,

	David

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-06-05  8:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-04 23:28 [PATCH] handle http urls with query string ("?foo") correctly David ‘Bombe’ Roden
2008-06-05  0:12 ` Johannes Schindelin
2008-06-05  6:48   ` David ‘Bombe’ Roden
2008-06-05  7:15     ` Johannes Schindelin
2008-06-05  7:57       ` Junio C Hamano
2008-06-05  8:37         ` David ‘Bombe’ Roden [this message]
2008-06-05 12:14         ` David ‘Bombe’ Roden
2008-06-05  8:29       ` David ‘Bombe’ Roden

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=200806051037.58675.bombe@pterodactylus.net \
    --to=bombe@pterodactylus.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.