Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Unknown AttributeValue type descriptor answers SerializationException where the service answers ValidationException

Abierto
#629 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
70/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust, sqlite

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
517
Forks
60
Merge medio
2 d 22 h
PR fusionados (30 d)
25

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ExtendDB/extenddb

Todos los issues de ExtendDB/extenddb

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.