Skip to content

Hmac validator null-safe check #647

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

Merged
merged 1 commit into from
Feb 17, 2022
Merged

Conversation

AlexandrosMor
Copy link
Contributor

Description

Hmac validator is not null safe, because notificationRequestItem.getAdditionalData().get(HMAC_SIGNATURE) returns null if addtionalData does not contain a key "hmacSignature" (or a possible null value for key "hmacSignature").
There is an extra null-safe check implented in this PR

Tested scenarios

Fixed issue:
Fixes #623

@AlexandrosMor AlexandrosMor merged commit a6bcb82 into develop Feb 17, 2022
@AlexandrosMor AlexandrosMor deleted the nullSafeHmacValidator branch February 17, 2022 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HMACValidator: check for key "hmacSignature" is not null-safe
3 participants