jenkinsci / jenkinsci/script-security-plugin

[JENKINS-50270] Whitelist built-in exception constructors

Open
#791 0 comments 0 reactions 0 assignees View on GitHub
component:script-security-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
76
Forks
181
Avg merge
14h 55m
Merged PRs (30d)
3

Description

I have a script library that throws an IllegalArgumentException under the usual circumstances (you pass semantically invalid parameters), but new java.lang.IllegalArgumentException java.lang.String requires approval. The standard constructors for runtime exceptions (or at least the ones that are common and applicable to pipeline scripts) should be whitelisted OOTB.

---
Originally reported by chrylis, imported from: Whitelist built-in exception constructors


  • status: Open
  • priority: Minor
  • component(s): script-security-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-09

Raw content of original issue

I have a script library that throws an IllegalArgumentException under the usual circumstances (you pass semantically invalid parameters), but new java.lang.IllegalArgumentException java.lang.String requires approval. The standard constructors for runtime exceptions (or at least the ones that are common and applicable to pipeline scripts) should be whitelisted OOTB.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.