cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/master to 61e38a1
Date Wed, 25 Mar 2015 16:50:31 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master fa5604566 -> 61e38a188


findbugs: use explicit default charset encoding

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

Branch: refs/heads/master
Commit: 61e38a188b20ab8494ed93d78c201eefe2cc5619
Parents: fa56045
Author: Daan Hoogland <dhoogland@schubergphilis.com>
Authored: Wed Mar 25 17:50:29 2015 +0100
Committer: Daan Hoogland <dhoogland@schubergphilis.com>
Committed: Wed Mar 25 17:50:29 2015 +0100

----------------------------------------------------------------------
 .../cloud/network/router/VirtualNetworkApplianceManagerImpl.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/61e38a18/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java b/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
index 905a041..d67a224 100644
--- a/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
+++ b/server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
@@ -18,6 +18,7 @@
 package com.cloud.network.router;
 
 import java.math.BigInteger;
+import java.nio.charset.Charset;
 import java.security.MessageDigest;
 import java.security.NoSuchAlgorithmException;
 import java.text.ParseException;
@@ -1643,7 +1644,7 @@ Configurable, StateListener<State, VirtualMachine.Event, VirtualMachine>
{
 
                 try {
                     final MessageDigest digest = MessageDigest.getInstance("SHA-512");
-                    final byte [] rawDigest = vpc.getUuid().getBytes();
+                    final byte [] rawDigest = vpc.getUuid().getBytes(Charset.defaultCharset());
                     digest.update(rawDigest);
 
                     final BigInteger password = new BigInteger(1, digest.digest());


Mime
View raw message