Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58799

A few collection methods need to be whitelisted

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Show
          haridsv Hari Dara added a comment - PR:  https://github.com/jenkinsci/script-security-plugin/pull/261
          Hide
          dnusbaum Devin Nusbaum added a comment -

          PR merged, but not yet released.

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: