From 9a521c3f56c4f8aa8319678a1e1a59b354c8b1f0 Mon Sep 17 00:00:00 2001 From: sulu5890 Date: Sun, 19 Dec 2021 18:10:35 -0600 Subject: [PATCH] Update Log4J (1.15.2) (#7157) * Update Log4j * update log4j (again) --- Spigot-Server-Patches/0558-Update-Log4j.patch | 111 ++++++++++++++++++ work/Paperclip | 2 +- 2 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 Spigot-Server-Patches/0558-Update-Log4j.patch diff --git a/Spigot-Server-Patches/0558-Update-Log4j.patch b/Spigot-Server-Patches/0558-Update-Log4j.patch new file mode 100644 index 0000000000..6689f2b632 --- /dev/null +++ b/Spigot-Server-Patches/0558-Update-Log4j.patch @@ -0,0 +1,111 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: sulu5890 +Date: Sat, 11 Dec 2021 12:42:57 -0600 +Subject: [PATCH] Update Log4j + + +diff --git a/pom.xml b/pom.xml +index e4c63bb76cb598545f9d215a8859724d6e7f8b81..4d4e37c1ad973e5419924f61972b37980d2233ea 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -63,25 +63,25 @@ + + org.apache.logging.log4j + log4j-core +- 2.8.1 ++ 2.17.0 + compile + + + org.apache.logging.log4j + log4j-slf4j-impl +- 2.8.1 ++ 2.17.0 + runtime + + + org.apache.logging.log4j + log4j-iostreams +- 2.8.1 ++ 2.17.0 + + + + com.lmax + disruptor +- 3.4.2 ++ 3.4.4 + runtime + + +@@ -203,6 +203,7 @@ + Bukkit + ${api.version} + Bukkit Team ++ true + + + +@@ -230,7 +231,7 @@ + + org.apache.maven.plugins + maven-shade-plugin +- 3.2.3 ++ 3.2.4 + + + package +@@ -242,7 +243,7 @@ + ${shadeSourcesJar} + + +- org.spigotmc:minecraft-server ++ org.spigotmc:minecraft-server:** + + com/google/common/** + com/google/gson/** +@@ -254,7 +255,7 @@ + META-INF/MANIFEST.MF + com.mojang.authlib.yggdrasil.YggdrasilGameProfileRepository + com.mojang.datafixers.util.Either +- org.apache.logging.log4j/** ++ org/apache/logging/log4j/** + + + +@@ -307,16 +308,18 @@ + + META-INF/services/java.sql.Driver + +- ++ + + + + + + +- com.github.edwgiz +- maven-shade-plugin.log4j2-cachefile-transformer +- 2.13.1 ++ ++ io.github.edwgiz ++ log4j-maven-shade-plugin-extensions ++ 2.17.0 ++ + + + +diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java +index 2ea6f5b7da35cbb342e72a00ea70fef667f05d49..da02663cb468449aed25b2d6ff2a416179c3088b 100644 +--- a/src/main/java/org/bukkit/craftbukkit/Main.java ++++ b/src/main/java/org/bukkit/craftbukkit/Main.java +@@ -178,7 +178,7 @@ public class Main { + tryPreloadClass("org.apache.logging.log4j.core.async.DisruptorUtil"); + tryPreloadClass("org.apache.logging.log4j.core.async.RingBufferLogEventHandler"); + tryPreloadClass("org.apache.logging.log4j.core.impl.ThrowableProxy"); +- tryPreloadClass("org.apache.logging.log4j.core.impl.ThrowableProxy$CacheEntry"); ++ tryPreloadClass("org.apache.logging.log4j.core.impl.ThrowableProxyHelper$CacheEntry"); // Paper - Update Log4j -- https://github.com/apache/logging-log4j2/commit/de6593f5f3b5acbb2cdb4ee91e4e1f472db5dcbb + tryPreloadClass("org.apache.logging.log4j.core.impl.ExtendedClassInfo"); + tryPreloadClass("org.apache.logging.log4j.core.impl.ExtendedStackTraceElement"); + // Paper end diff --git a/work/Paperclip b/work/Paperclip index ad5fe61d35..2d4c7b3bbd 160000 --- a/work/Paperclip +++ b/work/Paperclip @@ -1 +1 @@ -Subproject commit ad5fe61d352beab2fb598070d9e25afb6b60397e +Subproject commit 2d4c7b3bbd322d8b7f3bbe2fe33ecf627251c828