diff options
3 files changed, 10 insertions, 5 deletions
diff --git a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties index db9a684585..dbe5973a79 100644 --- a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties +++ b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties @@ -531,7 +531,6 @@ selectingCommits=Selecting commits sequenceTooLargeForDiffAlgorithm=Sequence too large for difference algorithm. serviceNotEnabledNoName=Service not enabled serviceNotPermitted={0} not permitted -serviceNotPermittedNoName=Service not permitted shallowCommitsAlreadyInitialized=Shallow commits have already been initialized shortCompressedStreamAt=Short compressed stream at {0} shortReadOfBlock=Short read of block. @@ -602,6 +601,7 @@ unableToCheckConnectivity=Unable to check connectivity. unableToCreateNewObject=Unable to create new object: {0} unableToStore=Unable to store {0}. unableToWrite=Unable to write {0} +unauthorized=Unauthorized unencodeableFile=Unencodable file: {0} unexpectedCompareResult=Unexpected metadata comparison result: {0} unexpectedEndOfConfigFile=Unexpected end of config file diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java index 9f6efef570..494114f705 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java @@ -590,7 +590,6 @@ public class JGitText extends TranslationBundle { /***/ public String sequenceTooLargeForDiffAlgorithm; /***/ public String serviceNotEnabledNoName; /***/ public String serviceNotPermitted; - /***/ public String serviceNotPermittedNoName; /***/ public String shallowCommitsAlreadyInitialized; /***/ public String shortCompressedStreamAt; /***/ public String shortReadOfBlock; @@ -661,6 +660,7 @@ public class JGitText extends TranslationBundle { /***/ public String unableToCreateNewObject; /***/ public String unableToStore; /***/ public String unableToWrite; + /***/ public String unauthorized; /***/ public String unencodeableFile; /***/ public String unexpectedCompareResult; /***/ public String unexpectedEndOfConfigFile; diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/resolver/ServiceNotAuthorizedException.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/resolver/ServiceNotAuthorizedException.java index a2c6edc828..3c16556b41 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/resolver/ServiceNotAuthorizedException.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/resolver/ServiceNotAuthorizedException.java @@ -45,12 +45,17 @@ package org.eclipse.jgit.transport.resolver; import org.eclipse.jgit.internal.JGitText; -/** Indicates the request service is not authorized for current user. */ +/** + * Indicates that the requested service requires authentication that + * the current user has not provided. + * <p> + * This corresponds to response code + * {@link javax.servlet.http.HttpServletResponse#SC_UNAUTHORIZED}. + */ public class ServiceNotAuthorizedException extends Exception { private static final long serialVersionUID = 1L; - /** Indicates the request service is not available. */ public ServiceNotAuthorizedException() { - super(JGitText.get().serviceNotPermittedNoName); + super(JGitText.get().unauthorized); } } |