Tags with special URI characters are not readable
@aleksandar-cloudinary 已经在做这个了。
开始于 2019年11月12日。
评估
这个 Issue 还没有评估数据。
描述
Tags that contain non-uri-component-safe characters are not readable using the resources_by_tag method. Example:
tag = 'with/some?bad=characters'
Cloudinary::Uploader.upload(url, tags: [tag]) # correctly encodes value
# will not see the upload
Cloudinary::Api.resources_by_tag(tag)
# because uri = "resources/#{resource_type}/tags/#{tag}"
# Work around, will see the upload
Cloudinary::Api.resources_by_tag(URI.encode_www_form_component(tag))
This looks to be caused by assembling the URI without encoding.
I'm opening an issue rather than a pull request because the code seems to have a lot of direct URI assembling, so the issue almost certainly exists elsewhere in the code. Most sites seem to have more constrained elements (type, public_id, etc.), but it does not hurt to encode them too.
- 主要语言
- Ruby
- 星标
- 420
- 派生
- 282
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cloudinary/cloudinary_gem 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 55/100
cloudinary/cloudinary_gem#597 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 52/100
cloudinary/cloudinary_gem#591 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
cloudinary/cloudinary_gem#582 · 1 条评论 ·
-
404's when fetching .eml files (from Action Mailbox)可能重新可做 @rnamba-cloudinary 于 400 天前认领,目前没有进行中的 PR。 未关闭
难度 4/5 3-5 天 新手友好度 30/100
cloudinary/cloudinary_gem#581 · 1 条评论 ·
-
BlobKey, MirrorService and Sidekiq 8 are incompatible可能重新可做 @const-cloudinary 于 541 天前认领,目前没有进行中的 PR。 未关闭
cloudinary/cloudinary_gem#573 · 3 条评论 · 已指派 1 人 ·
查看 cloudinary/cloudinary_gem 的全部 Issue
相似的 Issue
-
area: ci benchmark build developer-experience difficulty: easy dx enhancement github-actions good first issue hacktoberfest help wanted performance quality rank: 8 kyu ruby tech: ruby
难度 1/5 1 小时以内 新手友好度 82/100
flisk-sh/flisk-labs#22 ·
-
1.severity: security
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
15-minutes 5-minutes algorithm any-language beginner-friendly c cpp csharp easy go good first issue hacktoberfest help wanted java javascript kotlin python rust swift typescript
难度 1/5 1 小时以内 新手友好度 68/100
Huerte/algo-solutions-python#260 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
internal
难度 2/5 1-3 小时 新手友好度 72/100
Kong/developer.konghq.com#8080 ·
维护者通常 1 天内回复