-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regressionA bug that is also a regression
Milestone
Description
Affects: 6.0.x, 6.1.x
From 5.3.x to 6.0.x, the implementation of filesystem-searching in PathMatchingResourcePatternResolver
was changed from a recursive call to java.io.File.listFiles()
to a single call to java.nio.file.Files.walk(rootPath)
. This changed the default behavior so that PathMatchingResourcePatternResolver.getResources("file:./thisisasymlink/*.txt")
no longer works.
The java.nio.file.Files.walk
method can follow symlinks, but that behavior must be requested by supplying the FileVisitOption.FOLLOW_LINKS
option like this: Files.walk(rootPath, FOLLOW_LINKS)
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regressionA bug that is also a regression