From fc4a567604527120e7d321032b3336806deca8da Mon Sep 17 00:00:00 2001 From: Michael Tughan Date: Wed, 4 Dec 2024 15:15:13 -0500 Subject: [PATCH] Allow all immutable List subclasses from Java 11 A previous commit specifically allowed one of the two subclasses used by `List.of` and `List.copyOf`, but not the other, which can result in unexpected errors and bugs. Add the other to the default allow list of classes to avoid these. --- core/src/main/resources/jenkins/security/whitelisted-classes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/resources/jenkins/security/whitelisted-classes.txt b/core/src/main/resources/jenkins/security/whitelisted-classes.txt index b1805a6bd387..f3f9080bde81 100644 --- a/core/src/main/resources/jenkins/security/whitelisted-classes.txt +++ b/core/src/main/resources/jenkins/security/whitelisted-classes.txt @@ -105,6 +105,7 @@ java.util.HashMap java.util.HashSet java.util.Hashtable java.util.ImmutableCollections$List12 +java.util.ImmutableCollections$ListN java.util.LinkedHashMap java.util.LinkedHashSet java.util.LinkedList