UrlResource getFilename() suddenly returns null for certain paths #31718
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
After upgrading to spring-core 6.1.1 UrlResource("file:test").getFilename() returns null. On older versions 6.0.x i returned "test".
The problem seems to be caused by the fact that older version had field uri set to null and url set, but on 6.1.1 both url and uri is set.
This changes the behavior of getFilename, from getting the filename from url, to failing to get it from uri:
The text was updated successfully, but these errors were encountered: