-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
jenkisn 2.19.4
script-security 1.27
class Foo { String bar() { "baz" } } def f = new Foo() echo f.bar
fails with:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method groovy.lang.GroovyObject getProperty java.lang.String (Foo.bar)
at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectMethod(StaticWhitelist.java:183)
This was a ID10T error being masked by a the confusing security sandbox whitelist expection. Per abayer, the method invocation requires `()`s.