Skip to content

PathMatchingResourcePatternResolver#convertClassLoaderURL drops URLStreamHandler in version 6.1.x #33199

@ljcvok

Description

@ljcvok

I'm trying to upgrade to spring version 6.1.x. Due to the specific nature of a project, we use a custom class loader and custom java.net.URLStreamHandler which handles the opening of the JAR files.

Up to version 6.0.x the URL object remains as is in PathMatchingResourcePatternResolver#convertClassLoaderURL but since version 6.1.x the whole URL object is replaced by a new one keeping only the URL string.

Currently, there is no method how to keep the URLStreamHandler as the framework constructs a new URL. It would be beneficial to have the possibility to turn off this behaviour or somehow pass the handler of the original URL to the new one constructed.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions