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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: script-security-plugin
    • Labels:
      None
    • Environment:
      jenkins 2.89.3 (LTS)
      workflow-cps 2.43
    • Similar Issues:

      Description

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

        Attachments

          Issue Links

            Activity

            jhoblitt Joshua Hoblitt created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Component/s pipeline [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s script-security-plugin [ 18520 ]
            Component/s pipeline [ 21692 ]
            Component/s workflow-cps-plugin [ 21713 ]
            abayer Andrew Bayer made changes -
            Assignee Andrew Bayer [ abayer ]
            abayer Andrew Bayer made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            Show
            abayer Andrew Bayer added a comment - PR up at https://github.com/jenkinsci/script-security-plugin/pull/183
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "PR #183 (Web Link)" [ 20112 ]
            Hide
            scm_issue_link 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()

            Show
            scm_issue_link 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()
            Hide
            abayer Andrew Bayer added a comment -

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

            Show
            abayer Andrew Bayer added a comment - Merged, will be included in the next script-security release (which should be 1.42).
            abayer Andrew Bayer made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: