Skip to content

FileSystemResource does not strictly follow the Resource#isReadable() contract #36584

@jhoeller

Description

@jhoeller

Resource#isReadable() is documented to imply existence. FileSystemResource should strictly follow that contract through a combination of File.exists() and File.canRead calls, performing the former first since it does not require a native call underneath.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions