Empty segment in path error

Open
#429 8 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
azure, python, rust
Domain
backend, cloud

Research direction

Start by reproducing the double-delimiter case through obstore.list against Azure and trace where the iterator raises the empty-segment exception. Determine the intended handling for readable Azure paths versus unsupported backends, then verify that listing completes or reports the agreed warning/error behavior for paths such as container/l1/l2//file.csv.

Written by the indexing model from the issue text.

Description

When listing (obstore.list) and object path contains double delimiter exception is thrown.
At least in Azure those paths - while weird - are actually readable. One can even have two different paths like: container/l1/l2/file.csv, container/l1/l2//file.csv.

As far as I can tell there's no way to ignore the error since the exception would stop the iterator but maybe it could be possible to have a flag that would print warning and ignore such paths? Or if the behaviour was dependent on implementation e.g. if it's not supported in s3 or something it would throw error but if it works in azure it returns those paths?

I know we shouldn't have such a mess with the file paths but unfortunately sometimes it's other people writing for us and we have no influence over that 😅

Dominant language
Python
Stars
842
Forks
50
Avg merge
9h
Merged PRs (30d)
13

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from developmentseed/obstore

All issues in developmentseed/obstore

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.