Aure Cli 2.37: Storage blob url: the result url has "/" at the end, and in case of SAS token is used, the url becomes an invalid one.
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Related command**
az storage blob url
**Describe the bug**
The url generated by "az storage blob url" has "/" at the end, which makes the generated URL be invalid if sas token is used. See example below.
It works correctly with 2.36.
**To Reproduce**
15:02:22 [0] $ az version
{
"azure-cli": "2.36.0",
"azure-cli-core": "2.36.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {}
}
15:02:28 [0] $ az storage blob url --account-name batchasrdev --container-name basic-e2e-encrypted --name "" --sas-token "se=2022-06-01T14%3A29%3A00Z&sp=rl&sv=2021-06-08&ss=b&srt=cos&sig=a"
https://batchasrdev.blob.core.windows.net/basic-e2e-encrypted/?se=2022-06-01T14%3A29%3A00Z&sp=rl&sv=2021-06-08&ss=b&srt=cos&sig=a"
15:03:52 [0] # az version
{
"azure-cli": "2.37.0",
"azure-cli-core": "2.37.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {
"application-insights": "0.1.16"
}
}
15:03:58 [0] # az storage blob url --account-name batchasrdev --container-name basic-e2e-encrypted --name "" --sas-token "se=2022-06-01T14%3A29%3A00Z&sp=rl&sv=2021-06-08&ss=b&srt=cos&sig=a"
"https://batchasrdev.blob.core.windows.net/basic-e2e-encrypted?se=2022-06-01T14%3A29%3A00Z&sp=rl&sv=2021-06-08&ss=b&srt=cos&sig=a/"
**Expected behavior**
The "/" at the end should be removed, so that the generated SAS url is a valid one.
**Environment summary**
**Additional context**
Contributor guide
Assessment
This issue has not been assessed yet.