Skip to content
Permalink
Browse files

[FIXED JENKINS-22828] Expect an AbstractProject for input validation.

  • Loading branch information...
daniel-beck committed Apr 30, 2014
1 parent 4371497 commit 8c764432610fdc421de0f1aae8b3f05d3d35ec35
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
@@ -387,7 +387,7 @@ private boolean perform(Run src, AbstractBuild<?,?> dst, String expandedFilter,
public static final class DescriptorImpl extends BuildStepDescriptor<Builder> {

public FormValidation doCheckProjectName(
@AncestorInPath AbstractItem anc, @QueryParameter String value) {
@AncestorInPath AbstractProject anc, @QueryParameter String value) {
// Require CONFIGURE permission on this project
if (!anc.hasPermission(Item.CONFIGURE)) return FormValidation.ok();
FormValidation result;

0 comments on commit 8c76443

Please sign in to comment.
You can’t perform that action at this time.