-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Description
What is the bug?
Fields such as the id and index are not validated in the DynamoDB client.
This impacts parsing of the JSON text generated to serialize a DDB response into an OpenSearch response object.
How can one reproduce the bug?
Attempt to use a document ID or index containing characters which break JSON parsing, such as a single quote. Get a 500 error when the parsing fails.
What is the expected behavior?
User receives a 400-series error describing what is invalid.
Do you have any additional context?
Searching the OpenSearch codebase for an ActionRequestValidationException shows some validations.
Here the DocWriteRequest has a 512-character validation.
Metadata
Metadata
Assignees
Labels
No labels