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

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

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: