The following methods can be safely whitelisted and are very useful for writing compact code:

      • method groovy.lang.NumberRange by int
      • method groovy.lang.NumberRange getStepSize
      • method groovy.lang.Range getFrom
      • method groovy.lang.Range getTo
      • method groovy.lang.Range step int
      • method groovy.lang.Range step int groovy.lang.Closure
      • method java.util.Map containsValue java.lang.Object
      • staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods getAt java.lang.Object[] java.util.Collection
      • staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods minus java.util.List removeAt int
      • staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods minus java.util.List removeLast

          [JENKINS-58799] A few collection methods need to be whitelisted

          Hari Dara added a comment -

          Hari Dara added a comment - PR:  https://github.com/jenkinsci/script-security-plugin/pull/261

          Devin Nusbaum added a comment -

          PR merged, but not yet released.

          Devin Nusbaum added a comment - PR merged, but not yet released.

            haridsv Hari Dara
            haridsv Hari Dara
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: