Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Blocker
-
Resolution: Invalid
-
Affects Version/s: 2.5.1
-
Fix Version/s: None
-
Component/s: Core: Flow Definition Registry
-
Labels:
Description
I both used springframework/spring-core 5.0.5.RELEASE and spring-core 5.1.5.RELEASE.
I found AntPathMatcher.isPattern method was modified which caused the following exception.
In 5.0.5.RELEASE, I can successful get Resources by:
PathMatchingResourcePatternResolver().getResources("
classpath:com/xiao/mapper/common/*.xml")
I used "evaluate" found "getPathMatcher().isPattern(locationPattern.substring(prefixEnd))" returned false, so it processed to "return new Resource[]
{getResourceLoader().getResource(locationPattern)};". Then i get the right resources.
But, in 5.1.5.RELEASE, it doesn't work. "getPathMatcher().isPattern(locationPattern.substring(prefixEnd))" returned true, and it processed to "this.findPathMatchingResources(locationPattern)", finally, it returned empty resources.
I am confused about this. HOPE for your replay.
There are some screenshots, hope may help.
ScreenShot 1, it returned false:
sScreenShot 2, I got right resources:
SScreenShot 3, I used 5.1.5.RELEASE, it returned true:
SScreenShot 4, in 5.1.5.RELEASE, I got empty resources: