ppkarwasz opened a new issue, #3794:
URL: https://github.com/apache/logging-log4j2/issues/3794

   The two versions of the `UrlConnectionFactory.createConnection` method 
currently handle URLs differently, leading to inconsistencies:
   
   1. **Protocol Enforcement**:
   
      * The four-parameter version enforces the 
`log4j2.configurationAllowedProtocols` for all protocols.
      * The one-parameter version enforces it only for `http` and `https`.
   
   2. **Caching Behavior for the `jar` Protocol**:
   
      * The four-parameter version disables caching for the `jar` protocol 
**unconditionally**, regardless of the `URLConnection` used.
      * The one-parameter version only disables caching for `JarURLConnection` 
and its subclasses.
      * This discrepancy is related to the issue reported in 
[LOG4J2-3663](https://issues.apache.org/jira/browse/LOG4J2-3663).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to