// refuse to install if SHA-1 could not be computed
thrownewIOException("Failed to compute SHA-1 of downloaded file, refusing installation");
}
if(!expectedSHA1.equals(actualSha1)){
thrownewIOException("Downloaded file "+downloadedFile.getAbsolutePath()+" does not match expected SHA-1, expected '"+expectedSHA1+"', actual '"+actualSha1+"'");
// keep 'downloadedFile' around for investigating what's going on
}
}
}
/**
* Represents the state of the installation activity of one plugin.
*/
...
...
@@ -1347,18 +1404,24 @@ public class UpdateCenter extends AbstractModelObject implements Saveable, OnMas