Commit 62184f81 authored by Rolf Krahl's avatar Rolf Krahl

Throw an error if a spurious entry is encountered in the archive file.

Fix #96.
parent 5bde2605
......@@ -95,6 +95,9 @@ public class DsRestorer implements Runnable {
while (ze != null) {
String dfName = zipMapper.getFileName(ze.getName());
String location = nameToLocalMap.get(dfName);
if (location == null) {
throw new RuntimeException("Corrupt archive for " + dsInfo + ": spurious entry " + dfName);
}
mainStorageInterface.put(zis, location);
ze = zis.getNextEntry();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment