[workflow-plugin] [script-security-plugin] unclassified methods in sandboxed mode

317 views
Skip to first unread message

Javier Delgado

unread,
Mar 9, 2015, 11:45:07 AM3/9/15
to jenkins...@googlegroups.com
I have to use cases where I cant run my workflow due to errors thrown by script-security-plugin. Both workflows are being served via SCM:

1 - org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified new org.codehaus.groovy.runtime.GStringImpl java.lang.String java.lang.String[]

Can be reproduced by setting a job at jenkins 1.580.1, workflow-plugin 1.3 and script-security-plugin 1.13, and Groovy CPS DSL from SCM from master branch at https://github.com/witokondoria/jenkins-workflow-issues

2 - org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified new org.codehaus.groovy.runtime.GStringImpl groovy.lang.GString$2 java.lang.String[]

Can be reproduced with the same previous settings, just commenting line 19 @ test.groovy

I could circumvent those issues by not using GStrings, but seems dirty and with some other complex strcutures, unusable. 

Could this be a bug?

Jesse Glick

unread,
Mar 9, 2015, 4:22:56 PM3/9/15
to jenkins...@googlegroups.com
On Monday, March 9, 2015 at 3:45:07 PM UTC, Javier Delgado wrote:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified new org.codehaus.groovy.runtime.GStringImpl java.lang.String java.lang.String[]

Probably a bug; please file with steps to reproduce in component script-security-plugin, label workflow.

org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified new org.codehaus.groovy.runtime.GStringImpl groovy.lang.GString$2 java.lang.String[]

Ditto.

Javier Delgado

unread,
Mar 10, 2015, 6:04:46 AM3/10/15
to jenkins...@googlegroups.com
Opened two issues (just in case they are not closely related work):

Reply all
Reply to author
Forward
0 new messages