CLOUDSTACK-333: When Datacenter name in VCenter has spaces Primary Storage (VMFS) discovery will fail

Description:

    Missed encoding of URI when discovering ESX cluster in vCenter.

    Signed-off-by: Vijayendra Bhamidipati <vijayendra.bhamidipati@citrix.com>
This commit is contained in:
Vijayendra Bhamidipati 2012-10-12 17:33:36 -04:00 committed by Prasanna Santhanam
parent 2a8b9e5130
commit 8ced7da733

View File

@ -1281,7 +1281,7 @@ public class StorageManagerImpl implements StorageManager, Manager, ClusterManag
}
URI uri = null;
try {
uri = new URI(cmd.getUrl());
uri = new URI(UriUtils.encodeURIComponent(cmd.getUrl()));
if (uri.getScheme() == null) {
throw new InvalidParameterValueException("scheme is null " + cmd.getUrl() + ", add nfs:// as a prefix");
} else if (uri.getScheme().equalsIgnoreCase("nfs")) {