jenkinsci / groovy-sandbox

(Deprecated) Compile-time transformer to run Groovy code in a restrictive sandbox
MIT License
123 stars 60 forks source link

Null receiver check performed on method calls but not field/property accesses #15

Closed jglick closed 10 years ago

jglick commented 10 years ago

onMethodCall is not given a null receiver. But onGetProperty and onSetProperty are.

jglick commented 10 years ago

Observed in 1.5 but also true in 1.6. See workaround: https://github.com/jenkinsci/script-security-plugin/commit/9518899c0c52721b1a7b1f841111f2cd682269e8

kohsuke commented 10 years ago

Related to issue #6.

kohsuke commented 10 years ago

Fixed this toward 1.8.