Empty segment in path error

オープン
#429 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
azure, python, rust
領域
backend, cloud

調査の方向性

まず、Azure に対して obstore.list を使って二重区切り文字のケースを再現し、イテレーターが empty-segment exception を発生させる箇所を追跡します。読み取り可能な Azure パスとサポートされていないバックエンドについて意図された処理を明確にし、container/l1/l2//file.csv のようなパスに対して、一覧表示が完了するか、合意された警告/エラー動作を報告することを確認します。

索引モデルが issue の本文から書いたものです。

説明

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 😅

主要言語
Python
スター
842
フォーク
50
平均マージ
9時間
マージ済み PR(30日)
13

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

developmentseed/obstore のほかの issue

developmentseed/obstore の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。