mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 02:22:52 +01:00
CS-14826, CS-14996: fix the md5 checksum
Cherry-picked from 6618101d. Signed-off-by: Rohit Yadav <rohit.yadav@citrix.com>
This commit is contained in:
parent
98fd82c129
commit
0ec679c359
@ -297,7 +297,7 @@ public class DownloadManagerImpl implements DownloadManager {
|
||||
}
|
||||
byte[] md5sum = digest.digest();
|
||||
BigInteger bigInt = new BigInteger(1, md5sum);
|
||||
checksum = String.format("%032x",bigInt);
|
||||
checksum = String.format("%032x",bigInt.toString(16));
|
||||
return checksum;
|
||||
}catch(IOException e) {
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user