jenkinsci / jenkinsci/script-security-plugin
[JENKINS-50270] Whitelist built-in exception constructors
- 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
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
Assessment
This issue has not been assessed yet.