Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import java.io.IOException;
import java.io.InterruptedIOException;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
Expand Down Expand Up @@ -77,6 +78,12 @@
* Parsing and validation errors do not stop the configuration process; they are printed as warnings to the status
* logger.
* </p>
* <p>
* Since version <strong>2.27.0</strong>, external entities are resolved through
* {@link ConfigurationSource#fromUri(URI)}, so they can only be retrieved from local files or over the protocols allowed by the
* <a href="https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.configurationAllowedProtocols">{@code log4j2.configurationAllowedProtocols}</a>
* configuration property.
* </p>
*/
public class XmlConfiguration extends Log4j1Configuration {

Expand Down
7 changes: 7 additions & 0 deletions src/site/antora/modules/ROOT/pages/migrate-from-log4j1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 local files or over the protocols allowed by the
xref:manual/systemproperties.adoc#log4j2.configurationAllowedProtocols[`log4j2.configurationAllowedProtocols`]
property.
====

[#configuration-appenders]
==== Appenders

Expand Down
Loading