Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1735

spring-core 5.1.5.RELEASE AntPathMatcher.isPattern have bug?

    XMLWordPrintable

Details

    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:

      Attachments

        Activity

          People

            rstoya05-aop Rossen Stoyanchev
            lix-wang lix-wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: