spring-framework/spring-core/src
Lars Grefer 94e5eb3eb6 Consider empty jar entries as readable
Prior to this commit, resource handling would not serve empty files and
return instead HTTP 404 responses. This would only happen for files
contained by JARs, but not on the filesystem.

This can be tracked to changes done in `AbstractFileResolvingResource`
where we avoid serving empty files for directories, see gh-21372.
This commit improves the `checkReadable` method to align this behavior
between file system and JAR files.

Closes gh-28850
2022-09-26 09:51:11 +02:00
..
jmh/java/org/springframework Rewrite ConcurrentLruCache implementation 2022-08-31 19:10:50 +02:00
main Consider empty jar entries as readable 2022-09-26 09:51:11 +02:00
test Consider empty jar entries as readable 2022-09-26 09:51:11 +02:00
testFixtures/java/org/springframework/core/testfixture Relocate TestGenerationContext to spring-core-test 2022-09-05 16:21:17 +02:00