Skip to content

Commit e96de4b

Browse files
committed
CS-14826, CS-14996: fix the md5 checksum
1 parent f6efcd3 commit e96de4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/src/com/cloud/storage/template/DownloadManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ private String computeCheckSum(File f) {
293293
}
294294
byte[] md5sum = digest.digest();
295295
BigInteger bigInt = new BigInteger(1, md5sum);
296-
checksum = bigInt.toString(16);
296+
checksum = String.format("%032x",bigInt.toString(16));
297297
return checksum;
298298
}catch(IOException e) {
299299
return null;

0 commit comments

Comments
 (0)