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

Scripts not permitted to use method java.util.Map isEmpty

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • script-security-plugin
    • None
    • jenkins 2.89.3 (LTS)
      workflow-cps 2.43

      [:].isEmpty() triggers the wrath of the sandbox.

          [JENKINS-49542] Scripts not permitted to use method java.util.Map isEmpty

          Andrew Bayer added a comment -

          Andrew Bayer added a comment - PR up at https://github.com/jenkinsci/script-security-plugin/pull/183

          Code changed in jenkins
          User: Andrew Bayer
          Path:
          src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/generic-whitelist
          http://jenkins-ci.org/commit/script-security-plugin/7a76cd1753c4f02850194ab06824a5d4e8a4b9f5
          Log:
          [FIXED JENKINS-49542] Whitelist Map#isEmpty()

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/generic-whitelist http://jenkins-ci.org/commit/script-security-plugin/7a76cd1753c4f02850194ab06824a5d4e8a4b9f5 Log: [FIXED JENKINS-49542] Whitelist Map#isEmpty()

          Andrew Bayer added a comment -

          Merged, will be included in the next script-security release (which should be 1.42).

          Andrew Bayer added a comment - Merged, will be included in the next script-security release (which should be 1.42).

            abayer Andrew Bayer
            jhoblitt Joshua Hoblitt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: