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

7 views
Skip to first unread message

haridara@gmail.com (JIRA)

unread,
Aug 4, 2019, 6:17:02 AM8/4/19
to jenkinsc...@googlegroups.com
Hari Dara created an issue
 
Jenkins / Bug JENKINS-58799
A few collection methods need to be whitelisted
Issue Type: Bug Bug
Assignee: Hari Dara
Components: script-security-plugin
Created: 2019-08-04 10:16
Priority: Minor Minor
Reporter: Hari Dara

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
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

haridara@gmail.com (JIRA)

unread,
Aug 4, 2019, 6:22:02 AM8/4/19
to jenkinsc...@googlegroups.com

dnusbaum@cloudbees.com (JIRA)

unread,
Aug 8, 2019, 9:45:03 AM8/8/19
to jenkinsc...@googlegroups.com
Devin Nusbaum updated Bug JENKINS-58799
 

PR merged, but not yet released.

Change By: Devin Nusbaum
Status: Open Fixed but Unreleased
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages