From 2a5e41f7a85cd57f428cf34ed3433a647e4957ba Mon Sep 17 00:00:00 2001
From: "Piotr P. Karwasz"
+ * Since version 2.27.0, external entities are resolved through + * {@link ConfigurationSource#fromUri(URI)}, so they can only be retrieved from locations allowed by the + * {@code log4j2.configurationAllowedProtocols} + * configuration property. + *
*/ public class XmlConfiguration extends Log4j1Configuration { diff --git a/src/site/antora/modules/ROOT/pages/migrate-from-log4j1.adoc b/src/site/antora/modules/ROOT/pages/migrate-from-log4j1.adoc index a4434e1e703..901ff650d36 100644 --- a/src/site/antora/modules/ROOT/pages/migrate-from-log4j1.adoc +++ b/src/site/antora/modules/ROOT/pages/migrate-from-log4j1.adoc @@ -360,6 +360,13 @@ and xref:manual/configuration.adoc#configuration-attribute-schema[`schema`] attributes of the XML configuration format. +[NOTE] +==== +Since version `2.27.0`, the external subset and other external entities can only be retrieved from locations allowed by the +xref:manual/systemproperties.adoc#log4j2.configurationAllowedProtocols[`log4j2.configurationAllowedProtocols`] +property. +==== + [#configuration-appenders] ==== Appenders From 893d8d0aabb5410f1c4f0a76b823efd0ee027b07 Mon Sep 17 00:00:00 2001 From: "Piotr P. Karwasz"* Since version 2.27.0, external entities are resolved through - * {@link ConfigurationSource#fromUri(URI)}, so they can only be retrieved from locations allowed by the + * {@link ConfigurationSource#fromUri(URI)}, so they can only be retrieved from local files or over the protocols allowed by the * {@code log4j2.configurationAllowedProtocols} * configuration property. *
diff --git a/src/site/antora/modules/ROOT/pages/migrate-from-log4j1.adoc b/src/site/antora/modules/ROOT/pages/migrate-from-log4j1.adoc index 901ff650d36..13f3bf7c49a 100644 --- a/src/site/antora/modules/ROOT/pages/migrate-from-log4j1.adoc +++ b/src/site/antora/modules/ROOT/pages/migrate-from-log4j1.adoc @@ -362,7 +362,7 @@ attributes of the XML configuration format. [NOTE] ==== -Since version `2.27.0`, the external subset and other external entities can only be retrieved from locations allowed by the +Since version `2.27.0`, the external subset and other external entities can only be retrieved from local files or over the protocols allowed by the xref:manual/systemproperties.adoc#log4j2.configurationAllowedProtocols[`log4j2.configurationAllowedProtocols`] property. ====