Comments (2)
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.
from azure-sdk-for-net.
I tried some various storage API calls with and only blob download seems to fail when ?
is present in SharedAccessSignature
. Code I used:
using System;
using System.Threading.Tasks;
using Azure;
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Models;
class Program
{
static async Task Main(string[] args)
{
const string connectionString = "BlobEndpoint=https://<my storage account>.blob.core.windows.net/;SharedAccessSignature=?ss=b&sv=2022-11-02&srt=sco&sp=rl&se=2024-06-04T09:09:36Z&st=2024-06-04T01:09:36Z&spr=https&sig=<signature>";
// Create the BlobServiceClient using the connection string
BlobServiceClient blobServiceClient = new BlobServiceClient(connectionString);
try
{
await foreach (BlobContainerItem client in blobServiceClient.GetBlobContainersAsync())
{
Console.WriteLine($"Container name: {client.Name}");
}
var containerClient = blobServiceClient.GetBlobContainerClient("container");
await foreach (BlobItem blob in containerClient.GetBlobsAsync())
{
Console.WriteLine($"Blob name: {blob.Name}");
}
var blobClient = containerClient.GetBlobClient("blob.json");
var content = await blobClient.DownloadContentAsync(); // only this line fails
Console.WriteLine("done");
}
catch (RequestFailedException ex)
{
Console.WriteLine($"Error: {ex.Message}");
Console.WriteLine($"ErrorCode: {ex.ErrorCode}");
Console.WriteLine($"Status: {ex.Status}");
}
}
}
from azure-sdk-for-net.
Related Issues (20)
- [BUG] Test BearerTokenAuthenticationPolicy_TokenNotAlmostExpiredWithRefreshOnNow is failing randomly HOT 2
- Invalid ms.service metadata value HOT 4
- [Docs] Update context of EnableBatchedOperations
- Azure.Core: Add RequestContent.Create from IPerstistableModel<T>
- [FEATURE REQ] Add a GenerateUserDelegation...SasUri extension to storage clients. HOT 1
- When reposting a service bus message after a failure, the Diagnostic-Id field is not reset/clear. HOT 3
- [FEATURE REQ] Enhance MockableTrafficManagerArmClient Usability for Unit Testing by Adding Setters to TrafficManagerRegion Properties HOT 4
- [BUG] Misspelled hard-coded path to AGW WAF resource HOT 1
- [QUERY] how can I see http payload sent to azure ai search ? HOT 4
- [FEATURE REQ] Add constructor to allow using custom audience, appId for authenticating with Load Balancing through Azure API Management HOT 2
- [QUERY] ArmDeploymentResource.ValidateAsync doesn't return ArmDeploymentValidateResult but throws exception when "Preflight validation failed" HOT 1
- UpdateSubscriptionAsync method does not update AutoDeleteOnIdle properties HOT 7
- Facebook.com HOT 1
- Facebook.com HOT 1
- [FEATURE REQ] Support for federated identity credential + managed identity HOT 1
- [FEATURE REQ] Add AddAzureMonitorLogExporter extension method on LoggerProviderBuilder HOT 2
- [FEATURE REQ] Add ArmDeploymentValidateResult and WhatIfOperationResult to ResourceManagerModelFactory HOT 4
- incomplete doc HOT 7
- [BUG] OpenAI Legacy Completion endpoint not exposed HOT 4
- Laura Mansanarez HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-net.