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

          Joshua Hoblitt created issue -
          Oleg Nenashev made changes -
          Component/s New: pipeline [ 21692 ]
          Andrew Bayer made changes -
          Component/s New: script-security-plugin [ 18520 ]
          Component/s Original: pipeline [ 21692 ]
          Component/s Original: workflow-cps-plugin [ 21713 ]
          Andrew Bayer made changes -
          Assignee New: Andrew Bayer [ abayer ]
          Andrew Bayer made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Andrew Bayer made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

          Andrew Bayer added a comment -

          Andrew Bayer added a comment - PR up at https://github.com/jenkinsci/script-security-plugin/pull/183
          Andrew Bayer made changes -
          Remote Link New: This issue links to "PR #183 (Web Link)" [ 20112 ]

          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).
          Andrew Bayer made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]

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

              Created:
              Updated:
              Resolved: