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

Unclassified error on Date.parse(String, String) from DefaultGroovyStaticMethods

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: script-security-plugin
    • Labels:
    • Environment:
      Jenkins 1.596.1, Script Security Plugin 1.13
    • Similar Issues:

      Description

      If I create a workflow script and run it in the Groovy Sandbox, with this line:
      now = new Date().format("yyyyMMdd")

      I get this error:
      org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified method java.util.Date format java.lang.String

      And I do not get any option to approve it for use in the Script Approval UI. If I don't use the sandbox, the script works OK.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                owenmehegan Owen Mehegan
              • Votes:
                8 Vote for this issue
                Watchers:
                19 Start watching this issue

                Dates

                • Created:
                  Updated: