[Bug]: Python snapshot reads accept unsuccessful binary HTTP responses
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 20/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
Start at the Python SDK’s AsyncHTTPClient.git_show(..., path=...) response handling for /api/v1/snapshot/show, then check how the sync client and client.snapshot.show() use that path. Reproduce with an HTTP 503 response carrying Content-Type: application/octet-stream, and inspect the existing response/error handler. Done means failures raise the SDK error before snapshot metadata is parsed while successful binary responses retain their bytes and metadata. PR #7451 is already open.
索引モデルが issue の本文から書いたものです。
説明
Issue Origin
Reproduced through the public Python SDK against a local HTTP fixture. The fixture supplies an HTTP 503 response; no deployed OpenViking server or model was used.
Bug Description
AsyncHTTPClient.git_show(..., path=...) recognizes a snapshot blob solely by Content-Type: application/octet-stream, before checking the HTTP status. A 503 binary response therefore becomes a successful {oid, size, bytes} result. The same behavior reaches the sync client and client.snapshot.show().
Steps to Reproduce
- Serve HTTP 503 with
Content-Type: application/octet-streamand bodyupstream unavailableat/api/v1/snapshot/show. - Initialize
AsyncHTTPClientorSyncHTTPClientagainst that endpoint. - Call
client.snapshot.show("HEAD", path="viking://resources/a.txt").
Expected Behavior
An unsuccessful HTTP response raises the existing SDK error. It cannot become snapshot file content. Successful binary responses retain their bytes and snapshot metadata.
Actual Behavior
Both clients return {"oid": "", "size": 0, "bytes": b"upstream unavailable"}. With a malformed X-Snapshot-Size on the failed response, header parsing can also mask the HTTP failure with ValueError.
Proposed Fix and Compatibility
Require a successful HTTP status before entering the existing binary branch. Route failures through the current response/error handler before reading snapshot metadata. Keep successful binary responses, missing-header defaults and JSON metadata requests unchanged. No server, storage or wire-format changes are needed.
OpenViking Version
Current main 32de68480d36593648563f749d9af7a4a817489f.
Python Version
Python 3.13.9, httpx 0.28.1.
Operating System
Windows 11.
Model Backend
Not involved.
Additional Context
This follows the SDK response-failure work in #7058 and #7358, at the separate snapshot-read entrypoint. The investigation and local reproduction were completed with Codex assistance.
- 主要言語
- Python
- スター
- 41.8k
- フォーク
- 3.4k
- 平均マージ
- 19時間 29分
- マージ済み PR(30日)
- 500
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
volcengine/OpenViking のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
volcengine/OpenViking#7485 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
volcengine/OpenViking#7210 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
volcengine/OpenViking#7205 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: Retrieval rerank fallback statistics stay zero after provider failure対応中かも @97Three が 8 日前に担当しました。 オープンbug kernel
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
volcengine/OpenViking#7014 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: memory.prefetch_search_topn is inert above 5 (call site omits limit), plus two docstrings state the wrong defaults対応中かも @peterzhang987723 が 8 日前に担当しました。 オープンkernel
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
volcengine/OpenViking#6923 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
volcengine/OpenViking の issue をすべて見る
似ている issue
-
fuzz fuzz-unconfirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Switch to ruffオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Qiskit/qiskit-aer#2533 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
etesync/etesync-dav#376 ·