Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Casework: description validation accepts two request entities sharing one requestRoute

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

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

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

評価

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

調査の方向性

この issue は crates/registry-casework-breg/src/config.rs にあり、具体的には validate_description 関数に関するものです。まず、既存の duplicate-entity テストを調べて、検証パターンを理解してください。関数を変更して、requestEntity に加えて requestRoute も追跡するようにし、重複したルート用の新しいユニットテストを追加してください。修正が機能することを確認するために、既存のテストを実行してください。

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

説明

agent-ready area:casework bug criticality:p2 triage:needs-implementation

Problem

validate_description in crates/registry-casework-breg/src/config.rs refuses a v1alpha2 source description that lists the same requestEntity twice, but it never compares requestRoute across entries. A description that gives two different request entities the same route therefore passes caseworkctl check, caseworkctl package, and runtime input validation (validate_description_input).

BregAdapter::new requires routes to be unique, so the same project is refused only when the runtime constructs the source adapter. An offline-approved package is undeployable.

caseworkctl source add does not produce this shape, since it copies each route from bregctl explain change-requests. It is reachable through a hand-edited or otherwise supplied description.

Expected

The description decoder refuses a repeated requestRoute in the same place it refuses a repeated requestEntity, so the offline checks and adapter construction agree.

Fix sketch

  • Track the routes seen while building by_entity in validate_description, and return SourceAdapterError::Invalid on a repeat.
  • Add a unit test beside the existing duplicate-entity description test: two entries with distinct entities and one shared route are refused.

Found in review of #1355, after the related policy-level entity uniqueness check landed there.

主要言語
Rust
スター
2
フォーク
0
平均マージ
5時間 6分
マージ済み PR(30日)
170

環境構築

はじめの一歩

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

registrystack/registry-stack のほかの issue

registrystack/registry-stack の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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