[JENKINS-59514] Use POST instead of RequirePOST for form submissions (#4223)

* [JENKINS-59514] Use POST instead of RequirePOST for form submissions

* More form submission URLs

* More form submission endpoints
This commit is contained in:
Daniel Beck authored and Oleg Nenashev committed 2019-09-27 22:58:17 +02:00
1 parent dd047e5d31
commit 16145cca86
18 files changed
+42 -28

No files matched your search

+2 -1
View File
@@ -99,6 +99,7 @@ import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.ExportedBean;
import org.kohsuke.stapler.interceptor.RequirePOST;
import org.kohsuke.stapler.verb.POST;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
@@ -1612,7 +1613,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
return new HttpRedirect("advanced");
}
@RequirePOST
@POST
public HttpResponse doProxyConfigure(StaplerRequest req) throws IOException, ServletException {
Jenkins jenkins = Jenkins.get();
jenkins.checkPermission(CONFIGURE_UPDATECENTER);