diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2017-03-25 02:33:06 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2017-03-26 11:40:47 +0200 |
commit | aaf3c5154ea3b8a367266a7be7100ad7386a84b3 (patch) | |
tree | 32514aaeaa4534c8f846f4e26b7564b450ed72dc /org.eclipse.jgit.http.apache | |
parent | 363a3657b133ea4668bd832410eff67cfdb7dfd1 (diff) | |
download | jgit-aaf3c5154ea3b8a367266a7be7100ad7386a84b3.tar.gz jgit-aaf3c5154ea3b8a367266a7be7100ad7386a84b3.zip |
Only mark packfile invalid if exception signals permanent problem
Add NoPackSignatureException and UnsupportedPackVersionException to
explicitly mark permanent unrecoverable problems with a pack
Assume problem with a pack is permanent only if we are sure the
exception signals a non-transient problem we can't recover from:
- AccessDeniedException: we lack permissions
- CorruptObjectException: we detected corruption
- EOFException: file ended unexpectedly
- NoPackSignatureException: pack has no pack signature
- NoSuchFileException: file has gone missing
- PackMismatchException: pack no longer matches its index
- UnpackException: unpacking failed
- UnsupportedPackIndexVersionException: unsupported pack index version
- UnsupportedPackVersionException: unsupported pack version
Do not attempt to handle Errors since they are thrown for serious
problems applications should not try to recover from.
Change-Id: I2c416ce2b0e23255c4fb03a3f9a0ee237f7a484a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.http.apache')
0 files changed, 0 insertions, 0 deletions