]> source.dussan.org Git - jgit.git/commit
ReceivePack: Rethrow exceptions caught during indexing 24/1524/1
authorShawn O. Pearce <spearce@spearce.org>
Fri, 3 Sep 2010 16:38:30 +0000 (09:38 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 3 Sep 2010 17:57:55 +0000 (10:57 -0700)
commit9239c1038562c9c16a49165e3293f8c895ef50c2
treef20c38d94b30bd68279081df57b4e00948f35740
parente6bd689d2c48efb4e6662ffca2fbdbc7570d2db1
ReceivePack: Rethrow exceptions caught during indexing

If we get an exception while indexing the incoming pack, its likely
a stream corruption.  We already report an error to the client, but
we eat the stack trace, which makes debugging issues related to a
bug inside of JGit nearly impossible.  Rethrow it under a new type
UnpackException, so embedding servers or applications can catch the
error and provide it to a human who might be able to forward such
traces onto a JGit developer for evaluation.

Change-Id: Icad41148bbc0c76f284c7033a195a6b51911beab
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackRefFilterTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/errors/UnpackException.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java