An ExpressionAttributeNames entry with a malformed key and a value that is not a string answers ValidationException, where DynamoDB answers SerializationException
Maintainers usually reply within 3 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
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
Measured
DynamoDB in us-east-1 on 2026-11-21, each request twice with the same answer:
- GetItem with
ProjectionExpression#nandExpressionAttributeNames{"n": 5}answersSerializationExceptionNUMBER_VALUE cannot be converted to String. - SearchVectors with the same members answers
SerializationExceptioninvalid 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
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ExtendDB/extenddb
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Maintainers usually reply within 3 days
-
dev-mode key pair and healthcheck without a config file read a variable that is not UTF-8 as unsetOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 3 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 3 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 3 days
All issues in ExtendDB/extenddb
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
topgrade-rs/topgrade#2540 ·
Maintainers usually reply within 1 day
-
Invalid JSON options for ngram and edge_ngram silently use defaultsPossibly taken @Tilendlesa claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
noemaforge/vimanam#153 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mufeedvh/code2prompt#355 ·