-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Description
The two versions of the UrlConnectionFactory.createConnection
method currently handle URLs differently, leading to inconsistencies:
-
Protocol Enforcement:
- The four-parameter version enforces the
log4j2.configurationAllowedProtocols
for all protocols. - The one-parameter version enforces it only for
http
andhttps
.
- The four-parameter version enforces the
-
Caching Behavior for the
jar
Protocol:- The four-parameter version disables caching for the
jar
protocol unconditionally, regardless of theURLConnection
used. - The one-parameter version only disables caching for
JarURLConnection
and its subclasses. - This discrepancy is related to the issue reported in LOG4J2-3663.
- The four-parameter version disables caching for the
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Ready