Skip to content

Commit

Permalink
Fixed #144
Browse files Browse the repository at this point in the history
 o Problems with spaces in paths and job names
 o Reported by Shiv Kaushal
  • Loading branch information
khmarbaise committed Apr 11, 2016
1 parent 069e680 commit d46442e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ void enableJob(String jobName, boolean crumbFlag);
which uses the XStream classes which does not make sense
from my point of view.

[Fixed #144 Problems with spaces in paths and job names][issue-144]


## Release 0.3.3

Expand Down Expand Up @@ -227,5 +229,6 @@ TestReport testReport = mavenJob.getLastSuccessfulBuild().getTestReport();
[issue-116]: https://github.com/RisingOak/jenkins-client/issues/116
[issue-108]: https://github.com/RisingOak/jenkins-client/issues/108
[issue-130]: https://github.com/RisingOak/jenkins-client/issues/130
[issue-144]: https://github.com/RisingOak/jenkins-client/issues/144
[pull-123]: https://github.com/RisingOak/jenkins-client/pull/123

Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ private URI api(String path) {
String[] components = path.split("\\?", 2);
path = urlJoin(components[0], "api/json") + "?" + components[1];
}
return uri.resolve("/").resolve(path);
return uri.resolve("/").resolve(path.replace(" ","%20"));
}

private URI noapi(String path) {
Expand Down

0 comments on commit d46442e

Please sign in to comment.