Azure / Azure/azure-storage-python
Issue when generating a url using sas token. Method file_service.make_file_url()
- 主要语言
- Python
- 星标
- 343
- 派生
- 243
- PR 合并指标
- 30 天内没有已合并 PR
描述
### Which service(blob, file, queue) does this issue concern?
File share
### Which version of the SDK was used? Please provide the output of `pip freeze`.
azure-storage-file==2.0.1
azure-storage-common==2.0.0

### What problem was encountered?
https://github.com/Azure/azure-storage-python/blob/b8c5c9a1bc73065fd015c0fec75617cef263c6ee/azure-storage-file/azure/storage/file/fileservice.py#L233
When genrating a url using the method `make_file_url` passing a sas token, the generated url has two query strings ('?') instead of one.

The SaS Token generated on Azure portal starts with a query string.

### Have you found a mitigation/solution?
Yes. Remove the query string ('?') at line 233.
Note: for table service, please post the issue here instead: https://github.com/Azure/azure-cosmosdb-python.
贡献指南
调研方向
从 azure-storage-file/azure/storage/file/fileservice.py 第233行开始,使用由 Azure portal 生成的 SAS token 重现 make_file_url()。验证生成的文件 URL 包含一个查询字符串分隔符,而不是两个。该 issue 未指定测试文件,因此请检查附近是否有 URL 生成测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- azure, python
- 领域
- api, cloud
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 42/100