]> source.dussan.org Git - jgit.git/commit
Clarify description of ServiceNotAuthorizedException 77/49277/1
authorJonathan Nieder <jrn@google.com>
Tue, 2 Jun 2015 23:13:16 +0000 (16:13 -0700)
committerJonathan Nieder <jrn@google.com>
Tue, 2 Jun 2015 23:54:07 +0000 (16:54 -0700)
commit54b195ad3eeed88f20774f2aa1a5d6b19f59b0d7
treeb7e0cf36e07dceb90a9a3830f9f62defc8e2e466
parenta79168bcbb991c2efe40b4e041dae256b408af92
Clarify description of ServiceNotAuthorizedException

This exception's detail message states

Service not permitted

and according to the Javadoc it indicates that the current user does not
have access to the service.  In practice, though, callers handle this
exception by presenting a '401 Unauthorized' response to the client,
meaning that the user is unauthenticated and should authenticate.

Clarify the documentation and detail message to match the practice.

The exception message is not used anywhere except logs.  No
client-visible effect intended.

Change-Id: I2c6be9cb74af932f0dcb121a381a64f2ad876766
Signed-off-by: Jonathan Nieder <jrn@google.com>
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/resolver/ServiceNotAuthorizedException.java