-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Closed
Copy link
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.KeyVaultbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.
Milestone
Description
azure-sdk-for-python/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/crypto/_internal/jose.py
Lines 97 to 98 in 8c819a4
| if not (self.protected, self.encrypted_key, self.iv, self.ciphertext, self.tag): | |
| raise ValueError("JWE is not complete.") |
In the above code, the if not (tuple-with-any-elements): check will always evaluate to True.
I believe in this case you want if not all((self.protected, ...)) to ensure that each specified element is not empty.
Metadata
Metadata
Assignees
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.KeyVaultbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.