From 517c7b8a38c2678a286c54baed1bb47afbd3c667 Mon Sep 17 00:00:00 2001 From: Michael Tughan Date: Wed, 4 Dec 2024 15:15:13 -0500 Subject: [PATCH] Allow all immutable collections from Java 11 A previous commit specifically allowed a limited subset of the immutable classes that Java 11 introduced, but Jenkins should allow for all of them to be serialized. Add them all to the default allow list of classes. --- .../main/resources/jenkins/security/whitelisted-classes.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/resources/jenkins/security/whitelisted-classes.txt b/core/src/main/resources/jenkins/security/whitelisted-classes.txt index b1805a6bd387..8862abde9b91 100644 --- a/core/src/main/resources/jenkins/security/whitelisted-classes.txt +++ b/core/src/main/resources/jenkins/security/whitelisted-classes.txt @@ -105,6 +105,11 @@ java.util.HashMap java.util.HashSet java.util.Hashtable java.util.ImmutableCollections$List12 +java.util.ImmutableCollections$ListN +java.util.ImmutableCollections$Map1 +java.util.ImmutableCollections$MapN +java.util.ImmutableCollections$Set12 +java.util.ImmutableCollections$SetN java.util.LinkedHashMap java.util.LinkedHashSet java.util.LinkedList