|
168 | 168 | import org.kohsuke.stapler.StaplerResponse;
|
169 | 169 | import org.kohsuke.stapler.export.Exported;
|
170 | 170 | import org.kohsuke.stapler.export.ExportedBean;
|
| 171 | +import org.kohsuke.stapler.verb.POST; |
171 | 172 | import org.tmatesoft.svn.core.*;
|
172 | 173 | import org.tmatesoft.svn.core.auth.*;
|
173 | 174 | import org.tmatesoft.svn.core.internal.io.dav.DAVRepositoryFactory;
|
@@ -2279,6 +2280,7 @@ public ISVNAuthenticationProvider createAuthenticationProvider() {
|
2279 | 2280 | * Submits the authentication info.
|
2280 | 2281 | */
|
2281 | 2282 | // TODO: stapler should do multipart/form-data handling
|
| 2283 | + @POST |
2282 | 2284 | public void doPostCredential(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
|
2283 | 2285 | Jenkins.getInstance().checkPermission(Item.CONFIGURE);
|
2284 | 2286 |
|
@@ -2345,6 +2347,7 @@ public void postCredential(String url, final UserProvidedCredential upc, PrintWr
|
2345 | 2347 | */
|
2346 | 2348 | @CheckForNull
|
2347 | 2349 | @Deprecated
|
| 2350 | + @RequirePOST |
2348 | 2351 | public FormValidation doCheckRemote(StaplerRequest req, @AncestorInPath AbstractProject context, @QueryParameter String value, @QueryParameter String credentialsId) {
|
2349 | 2352 | Jenkins instance = Jenkins.getInstance();
|
2350 | 2353 | if (instance != null) {
|
@@ -2528,6 +2531,7 @@ public FormValidation doCheckExcludedCommitMessages(@QueryParameter String value
|
2528 | 2531 | /**
|
2529 | 2532 | * Validates the remote server supports custom revision properties
|
2530 | 2533 | */
|
| 2534 | + @RequirePOST |
2531 | 2535 | public FormValidation doCheckRevisionPropertiesSupported(@AncestorInPath Item context,
|
2532 | 2536 | @QueryParameter String value,
|
2533 | 2537 | @QueryParameter String credentialsId,
|
@@ -3191,6 +3195,7 @@ public ListBoxModel fillCredentialsIdItems(@CheckForNull Item context, String re
|
3191 | 3195 | /**
|
3192 | 3196 | * Validate the value for a remote (repository) location.
|
3193 | 3197 | */
|
| 3198 | + @RequirePOST |
3194 | 3199 | public FormValidation doCheckRemote(/* TODO unused, delete */StaplerRequest req, @AncestorInPath Item context,
|
3195 | 3200 | @QueryParameter String remote) {
|
3196 | 3201 |
|
|
0 commit comments