Re: [PATCHv3] daemon: give friendlier error messages to clients
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 15, 2011, 05:55 UTC
- Message-ID
- <7vk486x0hq.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CAMK1S_g0aKUa=+ndAm7rqeoPAobjVb6oJ1Z4DqSeNrdauXNH3w@mail.gmail.com>
Sitaram Chamarty <sitaramc@gmail.com> writes:
Show 8 quoted lines
>> Because there is a risk of leaking information about >> non-exported repositories, by default all errors simply say >> "access denied". Sites which don't have hidden repositories, > > I suggest that even the "secure" version of the message say something > like "access denied or repository not exported". You're still not > leaking anything, but it reduces confusion to the user, who otherwise > may not realise it *could be* the latter.
I kind of like the suggestion, but I am afraid that "access denied, repository nonexistent or not exported" can soon easily get long enough to be unmanageable.