diff options
author | Shawn Pearce <spearce@spearce.org> | 2015-05-06 16:02:27 -0700 |
---|---|---|
committer | Shawn Pearce <spearce@spearce.org> | 2015-05-06 16:02:27 -0700 |
commit | a870a8a03cf66024eae9a9425e5f699c5df8522e (patch) | |
tree | f91e3c177f753886980d7a3564f3342c22d19ce6 /org.eclipse.jgit.http.server/resources/org/eclipse | |
parent | ae592cc65576d1acac2bb6a8ed12c9160b403f0a (diff) | |
download | jgit-a870a8a03cf66024eae9a9425e5f699c5df8522e.tar.gz jgit-a870a8a03cf66024eae9a9425e5f699c5df8522e.zip |
Skip logging stack trace on corrupt objects
Instead of dumping a full stack trace when a client sends an invalid
commit, record only a short line explaining the attempt:
Cannot receive Invalid commit c0ff33...: invalid author into /tmp/jgit.git
The text alone is sufficient to explain the problem and the stack
trace does not lend any additional useful information. ObjectChecker
is quite clear about its rejection cases.
Change-Id: Ifc8cf06032489dc6431be1ba66101cf3d4299218
Diffstat (limited to 'org.eclipse.jgit.http.server/resources/org/eclipse')
-rw-r--r-- | org.eclipse.jgit.http.server/resources/org/eclipse/jgit/http/server/HttpServerText.properties | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit.http.server/resources/org/eclipse/jgit/http/server/HttpServerText.properties b/org.eclipse.jgit.http.server/resources/org/eclipse/jgit/http/server/HttpServerText.properties index 83c39277c1..28432b0d75 100644 --- a/org.eclipse.jgit.http.server/resources/org/eclipse/jgit/http/server/HttpServerText.properties +++ b/org.eclipse.jgit.http.server/resources/org/eclipse/jgit/http/server/HttpServerText.properties @@ -21,6 +21,7 @@ noResolverAvailable=No resolver available parameterNotSet=Parameter {0} not set pathForParamNotFound={0} (for {1}) not found pathNotSupported={0} not supported +receivedCorruptObject=Cannot receive {0} into {1} repositoryAccessForbidden=Git access forbidden repositoryNotFound=Git repository not found servletAlreadyInitialized=Servlet already initialized |