Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.17k stars 4.53k forks source link

[BUG] One of BlobContainerClient constructor overloads does not set clientSideEncryptionOptions #44623

Open DeagleGross opened 2 weeks ago

DeagleGross commented 2 weeks ago

Library name and version

Azure.Storage.Blobs 12.20.0

Describe the bug

This constructor of BlobContainerClient does not set _clientSideEncryptionOptions on the client, and any operations will run without encryption specified.

Expected behavior

client encryption options should be set

Actual behavior

client encryption options are null

Reproduction Steps

Run in debug

var client = new BlobContainerClient(
            connectionString: "UseDevelopmentStorage=true"
            blobContainerName: "enc-test",
            options: new SpecializedBlobClientOptions()
            {
                ClientSideEncryption = <some client side encryption options here>
            });

and make sure client.ClientSideEncryption is null (should not be null)

Environment

No response

github-actions[bot] commented 2 weeks ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.