Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
fix for Bug 6728, allows spaces in cluster member names whilst comply…
Browse files Browse the repository at this point in the history
…ing with URI rules
  • Loading branch information
timf committed Dec 23, 2009
1 parent 9eebbab commit 6811fc2
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -1880,8 +1880,10 @@ private FutureTask getWorkspaceTask(String workspaceFactoryURL,
}

try {
final URI runName =
new URI("https://" + hostport + "/" + newDirName);
final String newDirName_nospaces = newDirName.replace(' ', '_');
final String runNameString = "https://" + hostport + "/" + newDirName_nospaces;
print.debugln("name for metadata: '" + runNameString + "'");
final URI runName = new URI(runNameString);
metadata.setName(runName);
} catch (URI.MalformedURIException e) {
throw new ExecutionProblem(e.getMessage(), e);
Expand Down

0 comments on commit 6811fc2

Please sign in to comment.