Percent-encode Azure blob names in exported URLs

未关闭 适合新手
#3,254 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
azure, python
领域
backend, cloud

调研方向

从 python/deeplake/integrations/labelbox/labelbox_azure_utils.py 中的 load_blob_file_paths_from_azure 开始,检查 blob.name 如何与 HTTPS 基础 URL 和 SAS 查询组合。针对包含 # 和 ? 的 blob 名称添加专门的覆盖测试,同时保留路径分隔符和 SAS 查询;完成标准是每个返回的 URL 都指向预期的 blob。

由索引模型根据 Issue 内容生成。

描述

Bug

load_blob_file_paths_from_azure interpolates blob.name directly into an HTTPS URL. Blob names containing URL-reserved characters such as # or ? produce malformed URLs: # starts a fragment and ? starts a query before the SAS token, so the returned URL no longer addresses the intended blob and may lose its SAS query.

Expected behavior

Percent-encode the blob path while preserving / separators, so every returned URL addresses the listed blob and retains the SAS token as its query.

Evidence

Tracked source: python/deeplake/integrations/labelbox/labelbox_azure_utils.py. load_blob_file_paths_from_azure constructs the URL from blob.name and appends the SAS query without path quoting. No tests or builds were run during this audit slice.

主要语言
C++
星标
9.3k
派生
725
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

activeloopai/deeplake 的其他 Issue

查看 activeloopai/deeplake 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。