PathMatchingResourcePatternResolver#convertClassLoaderURL drops URLStreamHandler in version 6.1.x #33199
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
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 inPathMatchingResourcePatternResolver#convertClassLoaderURL
but since version6.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.The text was updated successfully, but these errors were encountered: