-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Labels
ClientThis issue is related to a non-management packageThis issue is related to a non-management packageService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)Storage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
Describe the bug
A SAS URI cannot be generated from a BlobContainerClient obtained through BlobServiceClient.GetBlobContainerClient.
Expected behavior
If a BlobServiceClient is created from an account key connection string, I expect a BlobContainerClient obtained through BlobServiceClient.GetBlobContainerClient to be able to generate a SAS URI.
That is, I expect the following test to pass:
[TestMethod]
public void ContainerClientCanGenerateSasUri()
{
var connectionString = "UseDevelopmentStorage=true;";
var serviceClient = new BlobServiceClient(connectionString);
var containerClient = serviceClient.GetBlobContainerClient("test");
// passes as expected
Assert.IsTrue(serviceClient.CanGenerateAccountSasUri);
// fails unexpectedly
Assert.IsTrue(containerClient.CanGenerateSasUri);
}
Actual behavior (include Exception or Stack Trace)
In the above example, containerClient.CanGenerateSasUri returns false.
To Reproduce
- Create a
BlobServiceClientfrom an account key connection string - Call
GetBlobContainerClienton the service client CanGenerateSasUrireturns false since theStorageSharedKeyCredentialisn't passed to the container
Environment:
- Name and version of the Library package used: Azure.Storage.Blobs 12.7.0
- Hosting platform or OS and .NET runtime version: Windows 10 .NET Framework 4.7.2
- IDE and version : Visual Studio 16.3
berendhaan and waynebrantleypenfold and waynebrantley
Metadata
Metadata
Assignees
Labels
ClientThis issue is related to a non-management packageThis issue is related to a non-management packageService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)Storage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that