Query API accepts malformed timeperiod ranges
维护者通常 5 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 aw_server/api.py 开始,ServerAPI.query2 在此处理以斜杠分隔的时间段。检查它如何解析包含额外段的范围和端点顺序颠倒的范围,然后查看附近的查询 API 测试或运行这些测试,以了解当前行为。完成标准是两种格式错误的范围都被拒绝,而不是对常量查询返回 HTTP 200。
由索引模型根据 Issue 内容生成。
描述
ServerAPI.query2 silently discards a third slash-separated timeperiod segment and evaluates reversed ranges, returning HTTP 200 for a constant query instead of rejecting the range.
No user report. Converted from ActivityWatch/aw-server#206 because the review SHA is not the current head (clean-and-small does not apply).
- PR: https://github.com/ActivityWatch/aw-server/pull/206
- Branch:
fix/query-timeperiod-validation
fingerprint: aw_server/api.py — reversed or extra-segment timeperiods return 200
- 主要语言
- Python
- 星标
- 129
- 派生
- 105
- 平均合并
- 5 天 4 小时
- 30 天内合并 PR
- 17
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ActivityWatch/aw-server 的其他 Issue
-
bug nice-to-have
难度 2/5 1-3 小时 新手友好度 68/100
ActivityWatch/aw-server#236 ·
维护者通常 5 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
ActivityWatch/aw-server#234 ·
维护者通常 5 天内回复
-
难度 5/5 一周以上 新手友好度 12/100
ActivityWatch/aw-server#233 ·
维护者通常 5 天内回复
-
难度 3/5 1-2 天 新手友好度 51/100
ActivityWatch/aw-server#213 · 1 条评论 ·
维护者通常 5 天内回复
-
Return structured 400 when event storage rejects a foreign-bucket ID可能已有人在做 @TimeToBuildBob 于 28 天前认领。 未关闭
难度 4/5 1-2 天 新手友好度 35/100
ActivityWatch/aw-server#211 · 1 条评论 ·
维护者通常 5 天内回复
查看 ActivityWatch/aw-server 的全部 Issue
相似的 Issue
-
Task select patterns with uppercase letters never match可能已有人在做 @manobhisriram 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
app: scripts status: backlog type: housekeeping
难度 1/5 1-3 小时 新手友好度 88/100
netbox-community/netbox-scripts#239 ·
维护者通常 1 天内回复
-
Lambda deploys fail once the bundle grows by about 254 KB可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
developmentseed/titiler-cmr#341 ·
维护者通常 1 天内回复
-
Card tables add "..." to every value in a DataFrame column when any value is longer than 30 characters可能已有人在做 @omkarbandikatte 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复