Skip to content
Permalink
Browse files

This fixes JENKINS-15744 (Whitespaces at the end of input fields lead…

…s to bogus file upload).
  • Loading branch information
stolp
stolp committed Mar 21, 2015
1 parent 631749a commit 2cc8ccb129d959fbeced37a2bc3ebd24b0b41193
Showing with 8 additions and 7 deletions.
  1. +8 −7 src/main/java/hudson/plugins/klaros/KlarosTestResultPublisher.java
@@ -57,6 +57,7 @@
import org.apache.commons.httpclient.methods.PutMethod;
import org.apache.commons.httpclient.methods.RequestEntity;
import org.apache.commons.httpclient.methods.StringRequestEntity;
import org.apache.commons.lang.StringUtils;
import org.apache.tools.ant.DirectoryScanner;
import org.apache.tools.ant.types.FileSet;
import org.kohsuke.stapler.AncestorInPath;
@@ -153,7 +154,7 @@ public String getConfig() {
*/
public void setConfig(final String value) {

config = value;
config = StringUtils.trim(value);
}

/**
@@ -173,7 +174,7 @@ public String getEnv() {
*/
public void setEnv(final String value) {

env = value;
env = StringUtils.trim(value);
}

/**
@@ -193,7 +194,7 @@ public String getUrl() {
*/
public void setUrl(final String value) {

url = value;
url = StringUtils.trim(value);
}

/**
@@ -213,7 +214,7 @@ public String getUsername() {
*/
public void setUsername(final String value) {

username = value;
username = StringUtils.trim(value);
}

/**
@@ -233,7 +234,7 @@ public String getPassword() {
*/
public void setPassword(final String value) {

password = value;
password = StringUtils.trim(value);
}

/**
@@ -253,7 +254,7 @@ public String getSut() {
*/
public void setSut(final String value) {

sut = value;
sut = StringUtils.trim(value);
}

/**
@@ -273,7 +274,7 @@ public String getPathTestResults() {
*/
public void setPathTestResults(final String value) {

pathTestResults = value;
pathTestResults = StringUtils.trim(value);
}

/**

0 comments on commit 2cc8ccb

Please sign in to comment.
You can’t perform that action at this time.