We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MessageDigest is not thread safe, therefore if there are multiple requests in quick succession, different hash is returned for the same input.
MessageDigest
Consequently, idempotent contract is broken and requests are treated as new for the same IdempotentKey
For the same IdempotentKey, same hash must be generated.
When generating Hash value, a new instance of MessageDigest should be used.
I am creating a PR to fix this issue.
this here explain thread safety issue of MessageDigest
The text was updated successfully, but these errors were encountered:
we could also used DigestUtils which is thread-safe
Sorry, something went wrong.
This is now released under 1.12.1 version!
No branches or pull requests
MessageDigest
is not thread safe, therefore if there are multiple requests in quick succession, different hash is returned for the same input.Consequently, idempotent contract is broken and requests are treated as new for the same IdempotentKey
Expected Behavior
For the same IdempotentKey, same hash must be generated.
When generating Hash value, a new instance of
MessageDigest
should be used.I am creating a PR to fix this issue.
this here explain thread safety issue of
MessageDigest
The text was updated successfully, but these errors were encountered: