Skip to content
Permalink
Browse files
Merge pull request #141 from abayer/jenkins-46191
[JENKINS-46191] Verify fix from groovy-sandbox
  • Loading branch information
abayer committed Aug 16, 2017
2 parents 2cc6126 + 7afdb08 commit be50a6d1ab68b9718298b975155f9df292da467d
Showing with 7 additions and 1 deletion.
  1. +1 −1 pom.xml
  2. +6 −0 src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/groovy/SandboxInterceptorTest.java
@@ -47,7 +47,7 @@
<dependency>
<groupId>org.kohsuke</groupId>
<artifactId>groovy-sandbox</artifactId>
<version>1.14</version>
<version>1.15</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.groovy</groupId>
@@ -859,4 +859,10 @@ public void rhsOfDeclarationTransformed() throws Exception {
assertRejected(new StaticWhitelist(), "staticMethod jenkins.model.Jenkins getInstance", "jenkins.model.Jenkins x = jenkins.model.Jenkins.getInstance()");
}

@Issue("JENKINS-46191")
@Test
public void emptyDeclaration() throws Exception {
assertEvaluate(new GenericWhitelist(), "abc", "String a; a = 'abc'; return a");
}

}

0 comments on commit be50a6d

Please sign in to comment.