[JIRA] (JENKINS-38163) take() method of strings unavailable

2 views
Skip to first unread message

dothebart@citadel.org (JIRA)

unread,
Sep 13, 2016, 6:39:01 AM9/13/16
to jenkinsc...@googlegroups.com
Wilfried Goesgens created an issue
 
Jenkins / Bug JENKINS-38163
take() method of strings unavailable
Issue Type: Bug Bug
Assignee: vjuranek
Components: groovy-plugin
Created: 2016/Sep/13 10:38 AM
Priority: Major Major
Reporter: Wilfried Goesgens

Creating a pipeline script with this:

abc="1234567890"
abc.take(5)

will result in:

org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods take java.lang.CharSequence int
at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectStaticMethod(StaticWhitelist.java:190)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:95)

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

dothebart@citadel.org (JIRA)

unread,
Oct 4, 2016, 7:38:05 AM10/4/16
to jenkinsc...@googlegroups.com

dothebart@citadel.org (JIRA)

unread,
Oct 4, 2016, 7:39:04 AM10/4/16
to jenkinsc...@googlegroups.com
Wilfried Goesgens updated an issue
 
Change By: Wilfried Goesgens
Component/s: script-security-plugin
Component/s: groovy-plugin

jglick@cloudbees.com (JIRA)

unread,
Oct 20, 2016, 10:17:01 AM10/20/16
to jenkinsc...@googlegroups.com
Jesse Glick assigned an issue to Wilfried Goesgens
Change By: Jesse Glick
Assignee: vjuranek Wilfried Goesgens

jglick@cloudbees.com (JIRA)

unread,
Oct 20, 2016, 10:17:02 AM10/20/16
to jenkinsc...@googlegroups.com
Jesse Glick resolved as Fixed
Change By: Jesse Glick
Status: Open Resolved
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages