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
- 派生
- 38
- 平均合并
- 13 小时 36 分钟
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
python-hyper/rfc3986 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
python-hyper/rfc3986#138 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 55/100
python-hyper/rfc3986#129 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
python-hyper/rfc3986#123 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
python-hyper/rfc3986#122 · 3 条评论 · 1 个 reaction ·
-
Label 未关闭
难度 5/5 一周以上 新手友好度 1/100
python-hyper/rfc3986#120 ·
查看 python-hyper/rfc3986 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
zostera/django-bootstrap4#894 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
use-agent-os/agent-os#3276 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
难度 2/5 1-3 小时 新手友好度 88/100
NousResearch/hermes-agent#117848 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
zilliztech/memsearch#759 ·