Skip to content

File URI Scheme Interpretation #2562

@tustvold

Description

@tustvold

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

The file URI scheme implemented in ObjectStoreRegistry does not appear to follow the specification described in RFC 3986.

In particular:

  • It does not handle the host component
  • It accepts non-absolute paths

Describe the solution you'd like

The file:// URIs should be handled in a spec-compliant way. Unfortunately this on its own would prevent the use of local paths, which would likely be annoying for users.

I would therefore propose we special case URIs without a scheme, and canonicalise them within ObjectStoreRegistry.

Describe alternatives you've considered

We could not do this

Additional context

I encountered this whilst working on #2489, as the object_store crate purposefully does not handle relative paths.

Thoughts @yahoNanJing @thinkharderdev

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions