Skip to content

Commit 8ced7da

Browse files
Vijayendra BhamidipatiPrasanna Santhanam
authored andcommitted
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>
1 parent 2a8b9e5 commit 8ced7da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/com/cloud/storage/StorageManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ public StoragePoolVO createPool(CreateStoragePoolCmd cmd) throws ResourceInUseEx
12811281
}
12821282
URI uri = null;
12831283
try {
1284-
uri = new URI(cmd.getUrl());
1284+
uri = new URI(UriUtils.encodeURIComponent(cmd.getUrl()));
12851285
if (uri.getScheme() == null) {
12861286
throw new InvalidParameterValueException("scheme is null " + cmd.getUrl() + ", add nfs:// as a prefix");
12871287
} else if (uri.getScheme().equalsIgnoreCase("nfs")) {

0 commit comments

Comments
 (0)