-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az storage blob download has strange name parsing issues #26899
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamStorageaz storageaz storageact-codegen-extensibility-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Milestone
Metadata
Metadata
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamStorageaz storageaz storageact-codegen-extensibility-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Describe the bug
When attempting to download specific files from blob storage, the command fails with the error
<partialfilename> was unexpected at this time.For example the following file name is parsed successfully:
az storage blob download -n "Sitecore/10.2.0/Sitecore 10.2.0 rev. 006766 (XM) (Cloud)_cd.scwdp.zip"While replacing the spaces with underscores:
az storage blob download -n "Sitecore/10.2.0/Sitecore_10.2.0_rev.006766_(XM)_(Cloud)_cm-fixed.scwdp.zip"Results in:
_(Cloud)_cm-fixed.scwdp.zip was unexpected at this time.Replacing the underscores with hyphens results in the similar message.
Replacing the underscore after
rev.006766with a space successfully attempts to download the file.Related command
az storage blob download
Errors
was unexpected at this time
Issue script & Debug output
Expected behavior
File is successfully downloaded from blob storage.
Environment Summary
azure-cli 2.49.0 *
core 2.49.0 *
telemetry 1.0.8
Extensions:
front-door 1.0.17
ssh 1.1.3
Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users....azure\cliextensions'
Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]
Additional context
No response