[Bug]: Python snapshot reads accept unsuccessful binary HTTP responses
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 20/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- backend-api-design
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 41.8k
- Fork
- 3.4k
- Merge medio
- 19h 29m
- PR unite (30g)
- 500
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di volcengine/OpenViking
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
volcengine/OpenViking#7485 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
volcengine/OpenViking#7210 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
volcengine/OpenViking#7205 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Retrieval rerank fallback statistics stay zero after provider failureForse già presa @97Three l’ha presa 8 giorni fa. Apertabug kernel
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
volcengine/OpenViking#7014 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: memory.prefetch_search_topn is inert above 5 (call site omits limit), plus two docstrings state the wrong defaultsForse già presa @peterzhang987723 l’ha presa 8 giorni fa. Apertakernel
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
volcengine/OpenViking#6923 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di volcengine/OpenViking
Issue simili
-
fuzz fuzz-unconfirmed
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Switch to ruffAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Qiskit/qiskit-aer#2533 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
etesync/etesync-dav#376 ·