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

Unclassified staticMethod java.nio.file.Paths get java.lang.String

XMLWordPrintable

      When attempting to run the expression new String(java.nio.file.Files.readAllBytes(java.nio.file.Paths.get("/some/path"))) in a sandboxed pipeline script, I get the following error:

      org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified staticMethod java.nio.file.Paths get java.lang.String

      Also, no approval appears at /scriptApproval.

            Unassigned Unassigned
            pianoroy Roy Tinker
            Votes:
            7 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: