Skip to content

Commit d46442e

Browse files
committed
o Problems with spaces in paths and job names o Reported by Shiv Kaushal
1 parent 069e680 commit d46442e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

ReleaseNotes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ void enableJob(String jobName, boolean crumbFlag);
2121
which uses the XStream classes which does not make sense
2222
from my point of view.
2323

24+
[Fixed #144 Problems with spaces in paths and job names][issue-144]
25+
2426

2527
## Release 0.3.3
2628

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

src/main/java/com/offbytwo/jenkins/client/JenkinsHttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ private URI api(String path) {
458458
String[] components = path.split("\\?", 2);
459459
path = urlJoin(components[0], "api/json") + "?" + components[1];
460460
}
461-
return uri.resolve("/").resolve(path);
461+
return uri.resolve("/").resolve(path.replace(" ","%20"));
462462
}
463463

464464
private URI noapi(String path) {

0 commit comments

Comments
 (0)