RejectedAccessException thrown but no pending script approval added

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When using

      new GetMethod(url)

      from

      import org.apache.commons.httpclient.HttpClient
      import org.apache.commons.httpclient.methods.GetMethod

      directly in a Workflow script pasted into the UI, everything works as expected.

      When the script is loaded with the file loader plugin during the Workflow script, the following error occurs:

      org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use new org.apache.commons.httpclient.methods.GetMethod java.lang.String

      No pending script approval is generated.

            Assignee:
            Jesse Glick
            Reporter:
            Tobias Larscheid
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: