Invalid custom filter regex becomes HTTP 500 instead of a query error
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 20/100
調査の方向性
Start at the query-function boundary for filter_keyvals_regex and trace how regex compilation errors become query errors; the issue names the offline Flask query route as the integration point. Check existing QueryFunctionException and QueryExecutionError handling, then review regression coverage for empty and populated input, valid matching and nonmatching patterns, and the HTTP route. Done means malformed patterns return HTTP 400 with a useful diagnostic while valid matching and the stated TypeError behavior remain intact.
索引モデルが issue の本文から書いたものです。
説明
Reproduced on current master c7821899ab38c1a39c87d7bf011c22a78de9b205 with the real offline Flask query route (aw-server 994ea988, MemoryStorage, query cache disabled): RETURN = filter_keyvals_regex([], "title", "["); returns HTTP 500 with an uncaught regex compilation error. A valid regex returns HTTP 200.
Expected: malformed custom AQL filter patterns raise the existing QueryFunctionException/QueryExecutionError hierarchy and return HTTP 400 with a useful diagnostic. This is separate from category-rule invalid-regex handling fixed in ActivityWatch/aw-core#176.
Scope: translate regex compilation errors at the query-function boundary only; preserve the low-level transform contract, valid matching, and event-data TypeError behavior. Regression coverage should include empty/populated input, valid matching/nonmatching patterns, and the actual offline HTTP route. I am preparing the scoped repair.
- 主要言語
- Python
- スター
- 65
- フォーク
- 74
- 平均マージ
- 3日 8時間
- マージ済み PR(30日)
- 4
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ActivityWatch/aw-core のほかの issue
-
flood(): a zero-duration event silently blocks gap flooding between its neighbours対応中かも @TimeToBuildBob が今日担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
ActivityWatch/aw-core#201 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Peewee explicit event IDs can move events between buckets対応中かも @TimeToBuildBob が 9 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
ActivityWatch/aw-core#195 ·
メンテナーはふだん 1 日以内に返信
-
Peewee range queries omit accepted events longer than 24 hours対応中かも @TimeToBuildBob が 9 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ActivityWatch/aw-core#194 ·
メンテナーはふだん 1 日以内に返信
-
Truncated AQL dictionary keys raise IndexError instead of a parse error対応中かも @TimeToBuildBob が 9 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
ActivityWatch/aw-core#190 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Missing required AQL arguments raise IndexError instead of a query error対応中かも @TimeToBuildBob が 9 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
ActivityWatch/aw-core#188 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ActivityWatch/aw-core の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
micropython/micropython#19906 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
FinanceFlash/unvibecode#597 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
TomAnthony/YourOwnWeigh#21 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: Compliance rules never see Unity Catalog views as views対応中かも @wagnercsantos が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
databrickslabs/ontos#1348 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信