[SECURITY-420] RequirePOST for proxy validation

This commit is contained in:
Daniel Beck committed 2017-04-15 14:37:58 +02:00
1 parent eaafedd2dd
commit 1f67232392
1 file changed
+2
@@ -56,6 +56,7 @@ import org.apache.commons.httpclient.methods.GetMethod;
import org.jvnet.robust_http_client.RetryableHttpStream;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.interceptor.RequirePOST;
/**
* HTTP proxy configuration.
@@ -296,6 +297,7 @@ public final class ProxyConfiguration extends AbstractDescribableImpl<ProxyConfi
return FormValidation.ok();
}
@RequirePOST
public FormValidation doValidateProxy(
@QueryParameter("testUrl") String testUrl, @QueryParameter("name") String name, @QueryParameter("port") int port,
@QueryParameter("userName") String userName, @QueryParameter("password") String password,