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
Should not store data in persistence store when idempotency key is null.
Expected Behavior
By default, treat a transaction that is missing idempotency key as a NO-OP transaction. That means, we will continue to log a warning and will not save at the configured persistence storage layer.
This prevents mistakes when an application is designed to optionally send a unique value (e.g., X-Idempotency-Value) and NULL doesn't get a unique sentinel value (e.g., UUID) in its absence.
Should not store data in persistence store when idempotency key is null.
Expected Behavior
By default, treat a transaction that is missing idempotency key as a NO-OP transaction. That means, we will continue to log a warning and will not save at the configured persistence storage layer.
This prevents mistakes when an application is designed to optionally send a unique value (e.g., X-Idempotency-Value) and
NULL
doesn't get a unique sentinel value (e.g., UUID) in its absence.Current Behavior
By default,
ThrowOnNoIdempotencyKey
is set tofalse
. This means we will log a warning when the idempotency key is missing, since we don't know if that's intentional or not. However we continue treating the transaction like we normally would, hash the null value, and save it in the persistence store.Test that confirms this behaviour.
Possible Solution
aws-powertools/powertools-lambda-typescript#1501
Steps to Reproduce (for bugs)
Environment
The text was updated successfully, but these errors were encountered: