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

          pianoroy Roy Tinker created issue -
          pianoroy Roy Tinker made changes -
          Field Original Value New Value
          Description When attempting to run the expression {{java.nio.file.Paths.get("/some/path")}}, 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.
          When attempting to run the expression {{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.
          pianoroy Roy Tinker made changes -
          Description When attempting to run the expression {{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.
          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.
          abayer Andrew Bayer made changes -
          Component/s pipeline-general [ 21692 ]
          abayer Andrew Bayer made changes -
          Component/s workflow-plugin [ 18820 ]
          abayer Andrew Bayer made changes -
          Labels workflow pipeline workflow
          abayer Andrew Bayer made changes -
          Labels pipeline workflow pipeline
          jglick Jesse Glick made changes -
          Component/s script-security-plugin [ 18520 ]
          Component/s pipeline [ 21692 ]
          jglick Jesse Glick made changes -
          Epic Link JENKINS-35391 [ 171184 ]
          jglick Jesse Glick made changes -
          Assignee Jesse Glick [ jglick ]
          abayer Andrew Bayer made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Cannot Reproduce [ 5 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: