Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Unknown AttributeValue type descriptor answers SerializationException where the service answers ValidationException

Aperta
#629 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
70/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust, sqlite
Ambito
backend, databases

Direzione di ricerca

Start in crates/core/src/types/attribute_value.rs, where the issue says unknown AttributeValue descriptors are mapped to a serde error. Read how that error becomes a server response and how validation failures are represented; the issue gives no test file, so locate the relevant deserializer and operation tests. Done when unknown descriptors return the stated ValidationException and message, while malformed JSON still returns SerializationException.

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

Descrizione

An item attribute whose value object carries a type descriptor DynamoDB does not define, for example {"pk": {"S": "a"}, "x": {"X": 1}}, is refused by the service with 400 ValidationException and the message Supplied AttributeValue is empty, must contain exactly one of the supported datatypes. On UpdateItem the message is wrapped: ExpressionAttributeValues contains invalid value: Supplied AttributeValue is empty, must contain exactly one of the supported datatypes for key :v. Measured on 2026-10-28 in us-east-1 on PutItem, UpdateItem, TransactWriteItems and BatchWriteItem, with the unknown descriptor at the top level of a value and nested inside an L and an M, two repetitions each; the answer was the same in every cell.

ExtendDB at abf8082f answers 400 SerializationException with Start of structure or map found where not expected: unknown AttributeValue type descriptor: X on all four operations, top-level and nested (SQLite server, two repetitions). The status matches; the error code and the message do not. A client that branches on the code (retrying SerializationException as a transport-shaped failure, surfacing ValidationException as a caller error) sees a different class of failure.

Where: the AttributeValue deserializer in crates/core/src/types/attribute_value.rs maps the unknown-descriptor arm to a serde error, which the server reports as SerializationException. The fix is to classify the unknown descriptor as a validation failure with the service's message, keeping SerializationException for malformed JSON.

Lingua principale
Rust
Stelle
517
Fork
60
Merge medio
2g 22h
PR unite (30g)
25

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 ExtendDB/extenddb

Tutte le issue di ExtendDB/extenddb

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.