Number.valueOf(...) methods should be whitelisted out of box.
      Ditto for ScriptBytecodeAdapter.compareEqual(), which is used for comparing two expressions like dryRun=="true"

          [JENKINS-27390] Number.valueOf(...) should be whitelisted

          Andrew Bayer added a comment -

          I'm assuming you mean Number.intValue() and friends. And ScriptBytecodeAdapter.compareEqual() got added since this was created.

          Andrew Bayer added a comment - I'm assuming you mean Number.intValue() and friends. And ScriptBytecodeAdapter.compareEqual() got added since this was created.

          Andrew Bayer added a comment -

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

          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/4732a44a18f5575574fa708cdb0e50ba4cbb5996
          Log:
          [FIXED JENKINS-27390] Added Number.intValue() and friends.

          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/4732a44a18f5575574fa708cdb0e50ba4cbb5996 Log: [FIXED JENKINS-27390] Added Number.intValue() and friends.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/generic-whitelist
          http://jenkins-ci.org/commit/script-security-plugin/c60eadf0ae7fe41be76fa5b9d93a0f03d7673970
          Log:
          Merge pull request #76 from abayer/jenkins-27390

          [FIXED JENKINS-27390] Added Number.intValue() and friends.

          Compare: https://github.com/jenkinsci/script-security-plugin/compare/ea85eeffa094...c60eadf0ae7f

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/resources/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/generic-whitelist http://jenkins-ci.org/commit/script-security-plugin/c60eadf0ae7fe41be76fa5b9d93a0f03d7673970 Log: Merge pull request #76 from abayer/jenkins-27390 [FIXED JENKINS-27390] Added Number.intValue() and friends. Compare: https://github.com/jenkinsci/script-security-plugin/compare/ea85eeffa094...c60eadf0ae7f

            abayer Andrew Bayer
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: