Unknown AttributeValue type descriptor answers SerializationException where the service answers ValidationException
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
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
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ExtendDB/extenddb
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
backend:mongodb bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 2 días
-
backend:cassandra bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
backend:cassandra bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 2 días
Todos los issues de ExtendDB/extenddb
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
swc-project/swc-next#1165 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Alive24/shea-symphony#574 ·
-
[ko] Translate /team into KoreanAbiertodocumentation good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
dev-five-git/devup-ui#879 ·
Los mantenedores suelen responder en 11 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
farion1231/cc-switch#9038 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
FalkorDB/FalkorDB#3597 · 1 comentario ·
Los mantenedores suelen responder en 2 días