BlobClient.openInputStream() throws StorageException without ErrorCode if spaces are in blob name
See original GitHub issueIf you try to open a input stream on BlobClient a exception is thrown without ErrorCode
Clone test program from: https://github.com/daolis/azureCopBlobInputStreamError
- Create Azure BlobStore
- Create Container
testcontainer
- Create Blobs
mytestblob.txt
andmy test blob.txt
with content - Set Environment Variables:
TEST_ACCOUNT_NAME
andTEST_ACCOUNT_KEY
Expected behavior Input stream should be opened and can be used to stream to a OutputStream
Screenshots
From example code:
Setup:
- OS: Linux
- IDE : IntelliJ
- com.azure:azure-storage-blob:12.0.0-preview.4
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Azure Blob Storage error codes - Microsoft Learn
Error code HTTP status code User message
BlobAlreadyExists Conflict (409) The specified blob already exists.
BlobNotFound Not Found (404) The specified blob does not exist.
ContainerAlreadyExists...
Read more >Cannot reference block blobs with blank space in filename
I used your code for the testing, and no issues with blob name contains white space. Sample code: using Microsoft.WindowsAzure.
Read more >com.microsoft.azure.storage.blob.CloudBlockBlob Java Exaples
This page shows Java code examples of com.microsoft.azure.storage.blob. ... open() throws IOException { try { CloudBlobContainer blobContainer = blobClient.
Read more >[Azure Blob Storage] ERROR: "The specified resource name ...
Question Connector setup fails with the error: "The specified resource name contains invalid characters." Environment Azure...
Read more >Microsoft Azure Blob Storage | Fastly Help Guides
In the Source field, enter "/<your container name>" req.url . From the Ignore if set menu, select No. In the Priority field, enter...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Early november 😃
Hi @vcolin7 Sorry, i also used the blob name with spaces for the target blob. Then i get the following exception…
When using the name with %20 for the target BlockBlob, then the upload is successful.
FYI I updated the testprogram to reproduce the error. see https://github.com/daolis/azureCopBlobInputStreamError