Skip to content

Uniform handling of URLConnection #3794

@ppkarwasz

Description

@ppkarwasz

The two versions of the UrlConnectionFactory.createConnection method currently handle URLs differently, leading to inconsistencies:

  1. Protocol Enforcement:

  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions