exchange: MpoEmbeddedProjects の重複エントリが暗黙に上書きされる
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Read com.microproject.exchange.MpoEmbeddedProjects.rewriteExtractedProjectReferences around the entries.put(entry.getName(), ...) call at L244, then compare the duplicate handling at L130 and in other validators. Add a test that passes duplicate entry names through this path and confirms it throws; update the path to reject duplicates. Run .\gradlew.bat :microproject_exchange:test --console=plain and check that git diff --check is clean.
Written by the indexing model from the issue text.
Description
概要
com.microproject.exchange.MpoEmbeddedProjects.rewriteExtractedProjectReferences(master b14ae24 時点、L244 の entries.put(entry.getName(), ...))が、重複したエントリ名を暗黙に上書きする(last-wins)。同じファイルの別の箇所(L130)や他の検証器は重複を拒否する方針で統一されており、ここだけ方針が違う。対象は検証済みアーカイブの再読込のため実害は小さいが、整合性の問題である。コードの静的確認で見つけた指摘で、行番号は master b14ae24 時点。
作業手順
- L244 の経路に重複エントリを含む入力を渡すテストを書き、現在の last-wins の振る舞いを確認する。
- 他の箇所と同じく、重複を検出したら例外にする。
検証
.\gradlew.bat :microproject_exchange:test --console=plain
完了条件
- 重複エントリで例外になるテストがあり、修正前に失敗し、修正後に通る
-
:microproject_exchange:testが通る -
git diff --checkが空である - PR の
buildとGUI acceptanceが通る
範囲外
- MPO 形式の変更
- L276 のプロジェクトエントリ書き換え(意図した上書き)の変更
- Dominant language
- Java
- Stars
- 2
- Forks
- 1
- Avg merge
- 4h 20m
- Merged PRs (30d)
- 409
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tetsuji16/microProject
-
area: ui bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
tetsuji16/microProject#1893 ·
Maintainers usually reply within 1 day
-
area: exchange bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tetsuji16/microProject#1884 ·
Maintainers usually reply within 1 day
-
area: ui bug priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
tetsuji16/microProject#1851 · 1 comment ·
Maintainers usually reply within 1 day
-
area: ui enhancement priority: low status: verification
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
tetsuji16/microProject#1386 · 3 comments ·
Maintainers usually reply within 1 day
-
area: ui enhancement priority: low status: verification
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
tetsuji16/microProject#1384 ·
Maintainers usually reply within 1 day
All issues in tetsuji16/microProject
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Lincoln-cn/JAiRouter#1473 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
exercism/java-analyzer#379 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
liberation-data/fornax4j#325 ·
Maintainers usually reply within 1 day
-
[Bug]: FE and Kinesis extraction pipes render flow starting at the centre and scroll the source arm backwardsPossibly taken @chonkzillaofficial claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
BCCE-team/BuildCraft#85 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 3 days