Skip to content
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

NPE if using CachingMostRecentProvider to decrypt records without "amzn-ddb-meta-id" #144

Open
lavaleri opened this issue Jun 8, 2021 · 0 comments

Comments

@lavaleri
Copy link
Contributor

lavaleri commented Jun 8, 2021

Problem:

If a user attempts to use a CachingMostRecentProvider to decrypt a record that does contain a mat-desc, but that mat-desc does not contain the key value "amzn-ddb-meta-id," they get an NPE. This can happen if a user tries to encrypt with another one of our providers then decrypt with the CachingMostRecentProvider.

Solution:

Instead, users should get a more friendly error that decryption was unable to succeed.

Out of scope:

The CachingMostRecentProvider is not intended to interoperate with other providers.

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

No branches or pull requests

1 participant