]> source.dussan.org Git - jgit.git/commit
Skip logging stack trace on corrupt objects 95/47395/1
authorShawn Pearce <spearce@spearce.org>
Wed, 6 May 2015 23:02:27 +0000 (16:02 -0700)
committerShawn Pearce <spearce@spearce.org>
Wed, 6 May 2015 23:02:27 +0000 (16:02 -0700)
commita870a8a03cf66024eae9a9425e5f699c5df8522e
treef91e3c177f753886980d7a3564f3342c22d19ce6
parentae592cc65576d1acac2bb6a8ed12c9160b403f0a
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
org.eclipse.jgit.http.server/resources/org/eclipse/jgit/http/server/HttpServerText.properties
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/HttpServerText.java
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/ReceivePackServlet.java