Skip to content

Commit

Permalink
[SECURITY-2236]
Browse files Browse the repository at this point in the history
  • Loading branch information
imonteroperez committed Mar 25, 2022
1 parent 8179285 commit 0cc6208
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import org.kohsuke.stapler.Stapler;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.bind.JavaScriptMethod;
import org.kohsuke.stapler.interceptor.RequirePOST;

import javax.annotation.Nonnull;
import java.io.IOException;
Expand Down Expand Up @@ -508,11 +509,13 @@ public TestDataPublisher newInstance(StaplerRequest req, JSONObject json) throws
* @param password
* @return
*/
@RequirePOST
public FormValidation doValidateGlobal(@QueryParameter String jiraUrl,
@QueryParameter String username,
@QueryParameter String password
) {

Jenkins.get().checkPermission(Jenkins.ADMINISTER);
String serverName;
try {
new URL(jiraUrl);
Expand Down

0 comments on commit 0cc6208

Please sign in to comment.