You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DynamoDB and DynamoDB-local throws ValidationException if attribute name inConditionExpression starts with _.
However, Dynalite does not throw and PutItem succeed.
Expectation
Dynalite should throw, so users can identity invalid chars and escape them using ExpressionAttributeNames.
exoego
changed the title
Dynalite does not validate invalid chars in ConditionExpression
Dynalite does not throws __foo in ConditionExpression
Aug 24, 2021
exoego
changed the title
Dynalite does not throws __foo in ConditionExpression
Dynalite does not throws if path token starts with underscore
Aug 24, 2021
I haven't yet checked, but I would imagine this would also be the same for other supported special characters, namely - and . (per the Supported data types and naming rules doc). Have you looked into those yet, by chance?
Summary
DynamoDB and DynamoDB-local throws ValidationException if attribute name in
ConditionExpression
starts with_
.However, Dynalite does not throw and PutItem succeed.
Expectation
Dynalite should throw, so users can identity invalid chars and escape them using
ExpressionAttributeNames
.Repro
DynamoDB Local
This wil throw
An error occurred (ValidationException) when calling the PutItem operation: Invalid ConditionExpression: Syntax error; token: "_", near: "__".
Dynalite
This will succeed, but it should fail.
The text was updated successfully, but these errors were encountered: