Updated Branches: refs/heads/master 98fd82c12 -> 0ec679c35
CS-14826, CS-14996: fix the md5 checksum Cherry-picked from 6618101d. Signed-off-by: Rohit Yadav <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/0ec679c3 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/0ec679c3 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/0ec679c3 Branch: refs/heads/master Commit: 0ec679c359bfaf8ec43a80fcbc5c617f6c74cab9 Parents: 98fd82c Author: Edison Su <[email protected]> Authored: Thu May 24 15:07:17 2012 -0700 Committer: Edison Su <[email protected]> Committed: Mon Aug 6 10:32:33 2012 -0700 ---------------------------------------------------------------------- .../storage/template/DownloadManagerImpl.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/0ec679c3/core/src/com/cloud/storage/template/DownloadManagerImpl.java ---------------------------------------------------------------------- diff --git a/core/src/com/cloud/storage/template/DownloadManagerImpl.java b/core/src/com/cloud/storage/template/DownloadManagerImpl.java index cd4b30d..a8e0db2 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;
