The audit history listing reads trail lines more loosely than verification does

オープン 初心者向け
#367 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go, json
領域
backend, cli

調査の方向性

internal/audit/wire_history.goのDefinitionHistoryから始め、他のトレイルリーダーが使っている完全一致の名前を読むリーダーを調べます。履歴の一覧表示でそのリーダーを使い、リーダーが拒否する行を拒否するか、フラグを立てるように更新します。重複するメンバー名や大文字・小文字だけが異なるメンバー名が検証と一貫して処理されれば完了です。payloadの説明にはテストファイルが記載されていないため、関連する履歴テストを探してください。

索引モデルが issue の本文から書いたものです。

説明

bug

Observed. The read-only history listing reads each trail line with a plain JSON decode (internal/audit/wire_history.go, DefinitionHistory), while verification and the other trail readers hold each line to its exact member names. A line with a duplicate member, or a member spelled as a case variant of a known name, is therefore read differently by the listing than by verification.

Effect. Which records the history listing selects can differ from what verification reads. Verification itself is not affected.

Ask. Read history lines with the same exact-name reader the other trail readers use, and refuse or flag a line that does not pass it.

Found while reviewing #366, which closed the same class in the lock reader.

主要言語
Go
スター
2
フォーク
6
平均マージ
2時間 11分
マージ済み PR(30日)
63

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Judgment-Pack/judgment-pack-runtime のほかの issue

Judgment-Pack/judgment-pack-runtime の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。