Skip to content

ResourceLoader with local "file:foo/bar/file.file" reference does not return WritableResource [SPR-16140] #20688

@spring-projects-issues

Description

@spring-projects-issues

Dennis Schmidt opened SPR-16140 and commented

For code example, see attached gist.

When loading a local file with the ResourceLoader, we are expecting the returned resource to be a WritableResource. The code example from the gist is derived from a spring-cloud-aws test where the same behavior as we expect works when loading an S3 resource.

After a brief discussion in the slack channel, Dave Syer suggested this may in fact be a bug. He expects the resource to be returned a FileSystemResource, which should be writable.


Affects: 5.0 GA

Reference URL: https://gist.github.com/anonymous/c11fee2d338ed4d984c5e7fa698af6e0

Issue Links:

Referenced from: commits 07b479e, b921d56

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions