提交 8063a27a 编写于 作者: J Jesse Glick 提交者: Kohsuke Kawaguchi

[FIXED SECURITY-69] Require POST to redeploy artifacts.(cherry picked from...

[FIXED SECURITY-69] Require POST to redeploy artifacts.(cherry picked from commit 3e56c3fc)
上级 1e51b622
......@@ -65,6 +65,7 @@ import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.ExportedBean;
import org.kohsuke.stapler.interceptor.RequirePOST;
/**
* UI to redeploy artifacts after the fact.
......@@ -208,6 +209,7 @@ public abstract class MavenAbstractArtifactRecord<T extends AbstractBuild<?,?>>
/**
* Performs a redeployment.
*/
@RequirePOST
public final HttpResponse doRedeploy(
@QueryParameter("_.id") final String id,
@QueryParameter("_.url") final String repositoryUrl,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册