| author | Sam Davis | 2013-01-03 18:54:29 (EST) |
|---|---|---|
| committer | Gerrit Code Review @ Eclipse.org | 2013-01-04 16:06:51 (EST) |
| commit | f8c56af50a3be88ae3fb3ee9dd8fc38d00bdc286 (patch) (side-by-side diff) | |
| tree | c0474caa88f4c4f98929f5cb1a0faeddbbcdb80a | |
| parent | 67b62ed3c9eb1c2697257b8d5801aed0f363c738 (diff) | |
| download | org.eclipse.mylyn.builds-f8c56af50a3be88ae3fb3ee9dd8fc38d00bdc286.zip org.eclipse.mylyn.builds-f8c56af50a3be88ae3fb3ee9dd8fc38d00bdc286.tar.gz org.eclipse.mylyn.builds-f8c56af50a3be88ae3fb3ee9dd8fc38d00bdc286.tar.bz2 | |
383013: builds opened from URL cannot be run from editorrefs/changes/43/9443/2
Change-Id: I57f0082c886931d94da97970c07a4db78b8c27e2
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=383013
| -rw-r--r-- | org.eclipse.mylyn.hudson.core/src/org/eclipse/mylyn/internal/hudson/core/client/RestfulHudsonClient.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.hudson.core/src/org/eclipse/mylyn/internal/hudson/core/client/RestfulHudsonClient.java b/org.eclipse.mylyn.hudson.core/src/org/eclipse/mylyn/internal/hudson/core/client/RestfulHudsonClient.java index dbed227..3a762ea 100644 --- a/org.eclipse.mylyn.hudson.core/src/org/eclipse/mylyn/internal/hudson/core/client/RestfulHudsonClient.java +++ b/org.eclipse.mylyn.hudson.core/src/org/eclipse/mylyn/internal/hudson/core/client/RestfulHudsonClient.java @@ -300,7 +300,11 @@ public class RestfulHudsonClient { } catch (URISyntaxException e) { throw new HudsonException(e); } - return client.getLocation().getUrl() + "/job/" + encodedJobname; + String url = client.getLocation().getUrl(); + if (!url.endsWith("/")) { //$NON-NLS-1$ + url += "/"; //$NON-NLS-1$ + } + return url + "job/" + encodedJobname; } Element parse(InputStream in, String url) throws HudsonException { |

