git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* More detailed error message for 403 forbidden.
@ 2013-03-27  3:29 Yi, EungJun
  2013-03-28 18:36 ` Jeff King
  0 siblings, 1 reply; 7+ messages in thread
From: Yi, EungJun @ 2013-03-27  3:29 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-03-31  9:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-27  3:29 More detailed error message for 403 forbidden Yi, EungJun
2013-03-28 18:36 ` Jeff King
2013-03-28 18:41   ` Jonathan Nieder
2013-03-28 18:45     ` Jeff King
2013-03-31  9:17       ` Yi, EungJun
2013-03-28 19:11   ` Junio C Hamano
2013-03-28 20:18     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).