Specific error for payload length mismatch

Aperta
#448 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
api

Direzione di ricerca

Start by reading the API error code definitions and the payload length checks in the API repository; the issue does not name their files. Then trace how existing codes are represented so the new code follows the project’s conventions. Done means a distinct payload length mismatch code is defined and available for gateways to use.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement I3 S3 U2

Is your feature request related to a problem? Please describe.

I'm always frustrated when I see https://github.com/nspcc-dev/neofs-rest-gw/pull/445. REST (and S3, and others) wants to return some meaningful HTTP code in case of payload length mismatch, but it has to track it internally because SN returns generic 1024 code which doesn't mean a lot on its own.

Describe the solution you'd like

Add a specific code for payload length mismatch. Use it in gateways.

Describe alternatives you've considered

Not a lot of them.

Additional context

https://github.com/nspcc-dev/neofs-rest-gw/pull/445
https://github.com/nspcc-dev/neofs-s3-gw/pull/1388
https://github.com/nspcc-dev/neofs-testcases/pull/1483
https://github.com/nspcc-dev/neofs-node/pull/4233

Lingua principale
Makefile
Stelle
12
Fork
15
Merge medio
1g 19h
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nspcc-dev/neofs-api

Tutte le issue di nspcc-dev/neofs-api

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.