aws / aws/aws-dynamodb-encryption-java
NPE if reading record without a amzn-ddb-map-desc
- Langage dominant
- Java
- Étoiles
- 141
- Forks
- 74
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
This line throws a null pointer exception if you attempt to decrypt a record where the amzn-ddb-map-desc attribute has been manually removed: https://github.com/aws/aws-dynamodb-encryption-java/blob/master/sdk1/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/encryption/providers/DirectKmsMaterialProvider.java#L126
We should check this earlier and throw a more useful exception.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez dans sdk1/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/encryption/providers/DirectKmsMaterialProvider.java à la ligne 126 et reproduisez le déchiffrement après avoir supprimé manuellement amzn-ddb-map-desc. Suivez l’endroit où l’attribut manquant est utilisé pour la première fois. Le travail est terminé lorsque l’attribut manquant produit une exception utile au lieu d’une NullPointerException.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- security
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 35/100