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

More detailed error message for 403 forbidden.

From
Yi, EungJun <semtlenori@gmail.com>
Date
Mar 27, 2013, 03:29 UTC
Message-ID
<CAFT+Tg_PwAS__AYCwQQZjy4LVvAMZFJuJ+ediDJpRnxx73qMMg@mail.gmail.com>

Currently, if user tried to access a git repository via HTTP and it fails because the user's permission is not enough to access the repository, git client tells that http request failed and the error was 403 forbidden.

But It is not enough for user to understand why it fails, especially if the user don't know the username because git-credential-osxkeychain authenticate implicitly without user knowing.

It would be much better if git client shows response body which might include an explanation of the failure. For example,

before:

$ git clone http://localhost/foo/bar error: The requested URL returned error: 403 while accessing http://localhost/foo/bar fatal: HTTP request failed

after:

$ git clone http://localhost/foo/bar error: The requested URL returned error: 403 while accessing http://localhost/foo/bar remote: User 'me' does not have enough permission to access the repository. fatal: HTTP request failed

Next: Jeff King
Message 1 of 7 in “More detailed error message for 403 forbidden.”
  1. Yi, EungJunMar 27, 2013
  2. Jeff KingMar 28, 2013
  3. Jonathan NiederMar 28, 2013
  4. Jeff KingMar 28, 2013
  5. Yi, EungJunMar 31, 2013
  6. Junio C HamanoMar 28, 2013
  7. Jeff KingMar 28, 2013

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.