vscode-azurestorage icon indicating copy to clipboard operation
vscode-azurestorage copied to clipboard

An error occurs when executing "Download by SAS Url..." for a blob which name contains a space

Open v-chenzha opened this issue 1 year ago • 3 comments

OS: Win10 Build Version: 20230703.1 Regression: Not a regression

Repro steps:

  1. Create a storage account -> Create a blob container.
  2. Right click the blob container -> Click "Create Empty Blob..." -> Type "a a".
  3. Right click the blob -> Click "Generate & Copy SAS Token and URL".
  4. F1 -> Azure Storage: Download by SAS Url... -> Select a folder -> Enter.
  5. Check whether succeeds to download the blob.

Expect: Succeed to download the blob.

Actual: An error occurs. image

More Info: This issue also reproduces for file share. image

v-chenzha avatar Jul 05 '23 07:07 v-chenzha

We may have to encode the string so special characters doesn't screw this up.

nturinski avatar Jul 05 '23 22:07 nturinski

This issue also reproduces for the empty blob/empty file named with GB18030 language.

v-xinda avatar Jul 06 '23 09:07 v-xinda

Verified this issue in latest build 20240611.1, this issue still reproduces.

Amar-QA avatar Jun 12 '24 09:06 Amar-QA