AzureStorageExplorer icon indicating copy to clipboard operation
AzureStorageExplorer copied to clipboard

Unable to upload/download files to container using Azurite HTTPS

Open cecheta opened this issue 8 months ago • 0 comments

Storage Explorer Version

1.38.0

Regression From

No response

Architecture

x64

Storage Explorer Build Number

20250408.1

Platform

Windows

OS Version

Windows 11 + WSL2 Ubuntu 24.04.1 LTS

Bug Description

I am trying to use Azure Storage Explorer to connect to Azurite via HTTPS. I have set up Azurite locally using a self-signed cert, and can upload/download files using the Python Azure SDK. For example, the following code works:

from azure.identity import DefaultAzureCredential
from azure.storage.blob import BlobClient

client = BlobClient(
    "https://127.0.0.1:10000/devstoreaccount1",
    container_name="my-container",
    blob_name="text.txt",
    credential=DefaultAzureCredential(),
)

client.upload_blob(
    "Test",
    overwrite=True,
    connection_verify="/path/to/rootCA.pem",
)

print(
    str(client.download_blob(connection_verify="/path/to/rootCA.pem").readall(), "utf-8")
)

I have imported the root certificate into Azure Storage Explorer, and can connect to the storage account and see the blobs in the container. I can even preview items in the container.

Image

However, when I try to upload or download a blob, the transferring step hangs indefinitely.

Upload:

Image

Download:

Image

I am also unable to cancel the transfers, and have to close and re-open the application.

Steps to Reproduce

  • In WSL, install Azurite, and start HTTPS server, by following steps here:
    • https://github.com/Azure/Azurite?tab=readme-ov-file#npm
    • https://github.com/Azure/Azurite?tab=readme-ov-file#mkcert
    • https://github.com/Azure/Azurite?tab=readme-ov-file#oauth-configuration
  • In Azure Storage Explorer, import root certificate
    • https://github.com/Azure/Azurite?tab=readme-ov-file#storage-explorer-with-azurite-https
  • Connect to Azurite via HTTPS connection string
    • https://github.com/Azure/Azurite?tab=readme-ov-file#add-azurite-via-https-connection-string
  • Attempt to upload or download file from container

Actual Experience

The upload/download hangs indefinitely on the transferring step (see screenshots above)

Expected Experience

Able to upload and download files.

Additional Context

No response

cecheta avatar Apr 29 '25 10:04 cecheta