Commit 3ca309f6 authored by Petri Hintukainen's avatar Petri Hintukainen

MountManager: handle jar.getInputStream() SecurityException

Invalid jar file signature triggers SecurityException.
Skip invalid file and try to mount other files.
parent 81ffbcaf
......@@ -111,7 +111,12 @@ public class MountManager {
logger.info(" mount: " + entry.getName());
inStream = jar.getInputStream(entry);
try {
inStream = jar.getInputStream(entry);
} catch (SecurityException se) {
logger.error("Error uncompressing " + entry.getName() + " from " + path + ": " + se + "\n" + Logger.dumpStack(se));
continue;
}
outStream = new FileOutputStream(out);
int length;
......
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