Skip to content

Commit

Permalink
Clean root entry path to match jar entries format in cache
Browse files Browse the repository at this point in the history
Closes gh-34348
  • Loading branch information
jhoeller committed Jan 31, 2025
1 parent 323e52b commit 2df8ea9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,8 @@ protected Set<Resource> doFindPathMatchingJarResources(Resource rootDirResource,
NavigableSet<String> entriesCache = this.jarEntriesCache.get(jarFileUrl);
if (entriesCache != null) {
Set<Resource> result = new LinkedHashSet<>(64);
// Clean root entry path to match jar entries format without "!" separators
rootEntryPath = rootEntryPath.replace(ResourceUtils.JAR_URL_SEPARATOR, "/");
// Search sorted entries from first entry with rootEntryPath prefix
for (String entryPath : entriesCache.tailSet(rootEntryPath, false)) {
if (!entryPath.startsWith(rootEntryPath)) {
Expand Down

0 comments on commit 2df8ea9

Please sign in to comment.