From 0ec679c359bfaf8ec43a80fcbc5c617f6c74cab9 Mon Sep 17 00:00:00 2001 From: Edison Su Date: Thu, 24 May 2012 15:07:17 -0700 Subject: [PATCH] CS-14826, CS-14996: fix the md5 checksum Cherry-picked from 6618101d. Signed-off-by: Rohit Yadav --- core/src/com/cloud/storage/template/DownloadManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/cloud/storage/template/DownloadManagerImpl.java b/core/src/com/cloud/storage/template/DownloadManagerImpl.java index cd4b30d37ba..a8e0db24a5e 100755 --- a/core/src/com/cloud/storage/template/DownloadManagerImpl.java +++ b/core/src/com/cloud/storage/template/DownloadManagerImpl.java @@ -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;