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

Re: Useless error message?

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 22, 2010, 09:42 UTC
Message-ID
<20100422094153.GA504@progeny.tock>
In-Reply-To
<7vwrw0573t.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
Show 6 quoted lines
> The true story is a bit different.
> 
> To avoid information leak to git-daemon clients, we deliberately choose
> not to give detailed error messages, so that you cannot tell if an error
> means a user "u" does not exist or "u" does but ~u/repo.git repository
> does not exist.

Thanks for the clarification. As I see it, these are two different classes of problem:

1. The git daemon is very quiet, usually for good reason, as you
   mentioned [1] [2].
2. The git daemon and protocol helpers do not always send the datum “a
   controlled fatal error occured” by writing some message (any
   message) to side band 3.

Fixing the daemon’s share in both might require setting up a side band very early. If an RFC patch appears setting up the side band (or an explanation for why that’s not possible), I would be happy to start work building from there.

That has been the big obstacle for me experimenting with it, more than the information disclosure. But this is easy to say. The doing is more important.

Thanks again, and sorry for the noise. Jonathan

[1] I do suspect that in the case of failing enter_repo() or missing git-daemon-export-ok, saying “cannot read the specified repo” would be fine. Most of the time, there is not much value in disclosing a more detailed reason, anyway.

[2] Example fix for a problem in this class: http://thread.gmane.org/gmane.comp.version-control.git/139029

Previous: Junio C HamanoNext: Andreas Ericsson
Message 5 of 13 in “Useless error message?”
  1. AghilesApr 21, 2010
  2. Kim EbertApr 21, 2010
  3. Jonathan NiederApr 21, 2010
  4. Junio C HamanoApr 22, 2010
  5. Jonathan NiederApr 22, 2010
  6. Andreas EricssonApr 22, 2010
  7. Jonathan NiederApr 22, 2010
  8. Andreas EricssonApr 22, 2010
  9. Jonathan NiederApr 22, 2010
  10. Ilari LiusvaaraApr 22, 2010
  11. daemon: report inaccessible repositories to userJonathan Nieder, Apr 22, 2010
  12. Petr BaudisApr 22, 2010
  13. AghilesApr 22, 2010

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.