Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[JENKINS-50939] - Whitelist java.util.EnumSet #3403
Conversation
|
@marcosbento Actually you whitelist EnumSet, not EnumMap. Generally it looks good to me, but 2 comments:
Thanks in advance, |
|
@oleg-nenashev yes, the goal is to whitelist java.util.EnumSet. Sorry for the typo. This has impact on https://wiki.jenkins.io/display/JENKINS/PRQA+Plugin as reported directly reported by a customer (which didn't report a Jira issue). I've just reported the issue as https://issues.jenkins-ci.org/browse/JENKINS-50939. Yes, it would be important to backport this to the Jenkins LTS. |
|
I am fine with that, let's see what @jglick says |
|
@marcosbento In any case, you can also add the type to the plugin's whitelist. In such case the class will be whitelisted for your users even before backporting |
|
Fine if it works (and it is not You should really consider changing your plugin to serialize a simpler type, though, like // instead of cast to E, we should perhaps use elementType.cast()
// to avoid injection of forged stream, but it will slow the implementationNot a security issue that I can see—you would just get a |
e511ff8
into
jenkinsci:master
marcosbento commentedApr 23, 2018
•
edited
See JENKINS-50939, or see details here.
As suggested in https://jenkins.io/blog/2018/01/13/jep-200/, this merge request adds java.util.EnumMap to the whitelist (as it is "defined in the Java Platform"). Because no new feature is implemented, no autotests are provided.
Proposed changelog entries
Submitter checklist
* Use the
Internal:prefix if the change has no user-visible impact (API, test frameworks, etc.)