idle-check.py: one non-object JSONL line stops the full idle scan
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
Read bootstraps/optional/idle-shutdown/idle-check.py around line 166 and follow the JSONL scan loop. Check how valid JSON values that are not objects reach obj.get; the issue suggests skipping non-dict values or catching AttributeError. Done means such a line is skipped and the scan continues; an open pull request already addresses this issue.
索引モデルが issue の本文から書いたものです。
説明
In idle-check.py line 166, the code catches only JSONDecodeError and KeyError.
If a line is valid JSON but is not an object (for example [] or "x"), obj.get raises AttributeError. This error goes out of the loop, and the full scan gives SCAN_ERROR.
Fix: skip lines that are not a dict (if not isinstance(obj, dict): continue), or also catch AttributeError.
Found by a static read of the code at commit 1f66a8f. The code was not run.
- 主要言語
- Shell
- スター
- 73
- フォーク
- 11
- 平均マージ
- 6時間 46分
- マージ済み PR(30日)
- 5
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
inceptionstack/lowkey のほかの issue
-
bug good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
inceptionstack/lowkey#135 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
inceptionstack/lowkey#134 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
inceptionstack/lowkey#133 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
inceptionstack/lowkey#131 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
inceptionstack/lowkey#130 ·
メンテナーはふだん 1 日以内に返信
inceptionstack/lowkey の issue をすべて見る
似ている issue
-
netbox status: backlog topic: testing type: housekeeping
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
netbox-community/netbox#23395 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ajeetdsouza/zoxide#1323 ·
メンテナーはふだん 1 日以内に返信
-
e2e-failure ready-to-code
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
redhat-developer/rhdh-plugin-export-overlays#4391 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pbakaus/impeccable#1028 ·
メンテナーはふだん 1 日以内に返信