An ExpressionAttributeNames entry with a malformed key and a value that is not a string answers ValidationException, where DynamoDB answers SerializationException

Open Beginner friendly
#1,321 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
api, backend, database

Research direction

Start in deserialize_placeholder_map in crates/core/src/serde_helpers.rs, which is reached through deserialize_expression_names. Read where it validates each key and where it converts each value, then check why the key check runs first. Done when a non-string value in ExpressionAttributeNames returns SerializationException even when the key is malformed, for both the GetItem and SearchVectors requests in the payload.

Written by the indexing model from the issue text.

Description

bug
Measured

DynamoDB in us-east-1 on 2026-11-21, each request twice with the same answer:

  • GetItem with ProjectionExpression #n and ExpressionAttributeNames {"n": 5} answers SerializationException NUMBER_VALUE cannot be converted to String.
  • SearchVectors with the same members answers SerializationException invalid type: integer `5`, expected a string at line 1 column 218.

ExtendDB (main 8c643330c, SQLite) answers the GetItem request with ValidationException ExpressionAttributeNames contains invalid key: Syntax error; key: "n". It answers the SearchVectors request with SerializationException, on main and with the fix for #729.

Where

deserialize_placeholder_map in crates/core/src/serde_helpers.rs reads each value as raw JSON, and it checks the key before it converts the value. Every operation that reads the map with deserialize_expression_names at the parse has this order.

Expected

Report the value of the wrong type first, as the service does.

Dominant language
Rust
Stars
517
Forks
60
Avg merge
3d 21h
Merged PRs (30d)
116

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ExtendDB/extenddb

All issues in ExtendDB/extenddb

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.