wrong parse
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- networking
调研方向
从入口点 is_valid_uri 开始,重现 issue 中的 URL,重点关注 authority 和 hostname 的验证方式。确认此输入会按描述被拒绝,然后添加一个覆盖带引号 hostname 的回归测试,并运行相关测试套件。
由索引模型根据 Issue 内容生成。
描述
Working on filtering URL system I found that case where False is expected but return True.
Code to test :
from rfc3986 import is_valid_uri
def test_url(url: str) -> bool:
try:
assert is_valid_uri(url, require_scheme=True, require_authority=True, require_path=False)
except AssertionError:
return False
return True
url = "http://'www.amazon.com/s/url=search-alias\%3dstripbooks&field-keywords=z+programming'"
test_url(url)
To be more precise in the report, while RFC 3386 does not explicitly forbid the character ' both RFC1123 and RFC952 prohibit this character in DNS names. Therefore, it should be taken into consideration for this case.
- 主要语言
- Python
- 星标
- 189
- 派生
- 43
- 平均合并
- 12 小时 14 分钟
- 30 天内合并 PR
- 2
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
python-hyper/rfc3986 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 86/100
python-hyper/rfc3986#164 ·
-
ParseResultBytes.unsplit() raises AttributeError for a reference without an authority可能已有人在做 @mayuriphad 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
python-hyper/rfc3986#163 ·
-
难度 3/5 1-2 天 新手友好度 45/100
python-hyper/rfc3986#138 · 1 条评论 ·
-
sdist is missing `tox.ini`可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 55/100
python-hyper/rfc3986#129 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
python-hyper/rfc3986#123 · 2 条评论 ·
查看 python-hyper/rfc3986 的全部 Issue
相似的 Issue
-
style: article/section 📝 system: cloud.rc ☁️ system: security 🔐
难度 2/5 1-3 小时 新手友好度 65/100
uabrc/uabrc.github.io#1262 ·
-
documentation
难度 2/5 1-3 小时 新手友好度 70/100
NCAR/miles-credit#526 ·
-
documentation
难度 1/5 1-3 小时 新手友好度 76/100
conda/conda-lock#957 ·
维护者通常 1 天内回复
-
Type: Bug
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
aws-samples/sample-per-model-bedrock#464 ·
维护者通常 1 天内回复