cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edi...@apache.org
Subject git commit: fix the wrong md5sum check
Date Sat, 11 Aug 2012 00:34:03 GMT
Updated Branches:
  refs/heads/master 66e3387b2 -> 0307effcf


fix the wrong md5sum check


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/0307effc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/0307effc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/0307effc

Branch: refs/heads/master
Commit: 0307effcfa25c1ed4f4e642a0167b5376cdec140
Parents: 66e3387
Author: Edison Su <disheng.su@gmail.com>
Authored: Fri Aug 10 17:32:44 2012 -0700
Committer: Edison Su <disheng.su@gmail.com>
Committed: Fri Aug 10 17:32:44 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/0307effc/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 a8e0db2..cd4b30d 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.toString(16));
+            checksum = String.format("%032x",bigInt);
             return checksum;
         }catch(IOException e) {
         	return null;


Mime
View raw message