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 9f2ebdf
Date Tue, 16 Jun 2015 06:56:51 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 9bb920af6 -> 9f2ebdf44


Fix findbugs encoding issue in VmwareStorageProcessor.java Any encoding would do fine as it's
just used to generate a UUID. Sticking with UTF-8 for consistency

Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>

This closes #460


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

Branch: refs/heads/master
Commit: 9f2ebdf443e40ca9bd3cce3cd36aecf16fafafc9
Parents: 9bb920a
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Mon Jun 15 19:15:55 2015 +0200
Committer: Daan Hoogland <daan.hoogland@gmail.com>
Committed: Tue Jun 16 08:56:33 2015 +0200

----------------------------------------------------------------------
 .../src/com/cloud/storage/resource/VmwareStorageProcessor.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9f2ebdf4/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java
b/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java
index 0bad8a6..b627d15 100644
--- a/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java
+++ b/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java
@@ -2265,7 +2265,7 @@ public class VmwareStorageProcessor implements StorageProcessor {
     }
 
     private static String deriveTemplateUuidOnHost(VmwareHypervisorHost hyperHost, String
storeIdentifier, String templateName) {
-        String templateUuid = UUID.nameUUIDFromBytes((templateName + "@" + storeIdentifier
+ "-" + hyperHost.getMor().getValue()).getBytes()).toString();
+        String templateUuid = UUID.nameUUIDFromBytes((templateName + "@" + storeIdentifier
+ "-" + hyperHost.getMor().getValue()).getBytes("UTF-8")).toString();
         templateUuid = templateUuid.replaceAll("-", "");
         return templateUuid;
     }


Mime
View raw message