-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynalite does not throws if path token starts with underscore #147
Comments
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: