mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[DURACOM-92] Fixed CheckerCommand if no bitstream was found
This commit is contained in:
@@ -255,10 +255,16 @@ public final class CheckerCommand {
|
||||
if (checksumMap.containsKey("checksum_algorithm")) {
|
||||
info.setChecksumAlgorithm(checksumMap.get("checksum_algorithm").toString());
|
||||
}
|
||||
|
||||
// compare new checksum to previous checksum
|
||||
info.setChecksumResult(compareChecksums(info.getExpectedChecksum(), info.getCurrentChecksum()));
|
||||
|
||||
} else {
|
||||
info.setCurrentChecksum("");
|
||||
info.setChecksumResult(getChecksumResultByCode(ChecksumResultCode.BITSTREAM_NOT_FOUND));
|
||||
info.setToBeProcessed(false);
|
||||
}
|
||||
|
||||
// compare new checksum to previous checksum
|
||||
info.setChecksumResult(compareChecksums(info.getExpectedChecksum(), info.getCurrentChecksum()));
|
||||
} catch (IOException e) {
|
||||
// bitstream located, but file missing from asset store
|
||||
info.setChecksumResult(getChecksumResultByCode(ChecksumResultCode.BITSTREAM_NOT_FOUND));
|
||||
|
Reference in New Issue
Block a user