-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Script Security 1.33
The following code will fail in non-CPS-transformed sandboxed Groovy, but will pass in CPS-transformed-and-sandboxed Groovy or vanilla Groovy:
def m = [fruitA: 'apple', fruitB: 'banana'] def bKey = 'B' assert m."fruitB" == m."fruit${bKey}"
That's obviously wrong. Not sure yet where the problem is happening but will dig.
https://github.com/jenkinsci/script-security-plugin/pull/143 is an ongoing PR for adding more test coverage of the language as a whole, and includes a currently-ignored test for this bug.