List operation should skip objects with invalid paths instead of returning 503

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
api, backend

Research direction

Start by reproducing the failure with aws s3 ls s3://dynamical/asos-parquet/ --endpoint https://data.source.coop, then trace the S3 list operation and the handling of invalid object paths. Done means objects with empty path segments are skipped with an appropriate warning, while valid results are returned successfully instead of a 503.

Written by the indexing model from the issue text.

Description

Problem

When a backend bucket contains an object with an invalid key (e.g. dynamical/asos-parquet// — double slash / empty path segment), the list operation fails with a 503 ServiceUnavailable error:

backend error: Encountered object with invalid path: Path "dynamical/asos-parquet//" contained empty path segment

This makes the entire listing unusable even though only one object has a bad key.

Expected behavior

The proxy should skip objects with invalid paths and return the remaining valid results. A warning log is appropriate, but the response should succeed.

How to reproduce

List a bucket that contains an object key with an empty path segment (double slash):

aws s3 ls s3://dynamical/asos-parquet/ --endpoint https://data.source.coop

Context

These invalid keys can be created by tools that accidentally add trailing or double slashes. The proxy shouldn't let one bad object break listing for an entire prefix.

Dominant language
Rust
Stars
21
Forks
1
Avg merge
16h 39m
Merged PRs (30d)
1

Getting set up

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/multistore

All issues in developmentseed/multistore

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.