Invalid legacy argument for Customer Provided Key #17835
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Storage
Storage Service (Queues, Blobs, Files)
The
BlobClient
class contains in many of its methods the capability to add a Customer Provided Key for encryption, by supplying acpk
argument that must contain aCustomerProvidedEncryptionKey
object. Inside those methods, theCustomerProvidedEncryptionKey
is converted into aCpkInfo
object, as this seems to be the object that the lower-level method wants.However apparently the
CpkInfo
class was modified a while ago, and one of its attributes,encryption_algorithm
, was removed, while the code inBlobClient
still tries to set it. An example (though it happens several times in the file) can be seen at :azure-sdk-for-python/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py
Lines 369 to 370 in e43995b
This produces warnings
.... i.e. it seems that the operation does go through, though the code seems to be a leftover
The text was updated successfully, but these errors were encountered: