File tree Expand file tree Collapse file tree
services/secondary-storage/server/src/org/apache/cloudstack/storage/template Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424import java .math .BigInteger ;
2525import java .net .URI ;
2626import java .net .URISyntaxException ;
27+ import java .nio .charset .Charset ;
2728import java .security .MessageDigest ;
2829import java .security .NoSuchAlgorithmException ;
2930import java .text .SimpleDateFormat ;
@@ -423,7 +424,7 @@ private String postLocalDownload(String jobId) {
423424 if (extension .equals ("iso" )) {
424425 templateName = jobs .get (jobId ).getTmpltName ().trim ().replace (" " , "_" );
425426 } else {
426- templateName = java .util .UUID .nameUUIDFromBytes ((jobs .get (jobId ).getTmpltName () + System .currentTimeMillis ()).getBytes ()).toString ();
427+ templateName = java .util .UUID .nameUUIDFromBytes ((jobs .get (jobId ).getTmpltName () + System .currentTimeMillis ()).getBytes (Charset . forName ( "UTF-8" ) )).toString ();
427428 }
428429
429430 // run script to mv the temporary template file to the final template
You can’t perform that action at this time.
0 commit comments