• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • script-security-plugin
    • None
    • script-security 1.27

      ["a","b","c"].join()

      blows up with:

      org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified method java.util.ArrayList join
      

          [JENKINS-43484] security sandbox rejects String join method

          JENKINS-43519 / JENKINS-43520 are related in the sense that they make it very difficult to work around the lack of a working #join.

          Joshua Hoblitt added a comment - JENKINS-43519 / JENKINS-43520 are related in the sense that they make it very difficult to work around the lack of a working #join .

          Jesse Glick added a comment -

          Mapping to DefaultGroovyMethod.join(Collection, String) somehow not being found.

          Jesse Glick added a comment - Mapping to DefaultGroovyMethod.join(Collection, String) somehow not being found.

          This seems to get through the sandbox:
          ["a","b","c"].join('')
          And hopefully it is equivalent to:
          ["a","b","c"].join()

          timothy luksha added a comment - This seems to get through the sandbox: ["a","b","c"] .join('') And hopefully it is equivalent to: ["a","b","c"] .join()

            Unassigned Unassigned
            jhoblitt Joshua Hoblitt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: