com.qiniu.util.Auth类下privateDownloadUrlWithDeadline()方法token参数带冒号,会导致某些场景url格式有问题

Open
#546 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
java

Research direction

Start by inspecting com.qiniu.util.Auth.privateDownloadUrlWithDeadline() and reproduce the URL-generation problem with a token containing a colon. Verify the resulting private URL passes the affected URL validation scenarios while retaining the intended token value, and add or update a focused test if the repository has coverage for this method.

Written by the indexing model from the issue text.

Description

com.qiniu.util.Auth类下privateDownloadUrlWithDeadline()方法在生成url的时候,会默认拼接token参数,当参数内带“:”时,该privateUrl某些场景会无法通过url校验,建议默认使用encode处理下

Dominant language
Java
Stars
558
Forks
468
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from qiniu/java-sdk

All issues in qiniu/java-sdk

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.