apache / apache/maven-changes-plugin

[MCHANGES-411] Issue link is mangled if project.issueManagement.url does not end with slash (/)

オープン
#281 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug priority:major
主要言語
Java
スター
15
フォーク
22
平均マージ
8時間 1分
マージ済み PR(30日)
3

説明

**[Unassigned Developer](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=unassigned-developer)** opened **[MCHANGES-411](https://issues.apache.org/jira/browse/MCHANGES-411?redirect=false)** and commented

Consider the follwing block in your POM:

```xml

GitHub
https://github.com/michael-o/tomcatspnegoad/issues

```

The changes report will turn the issue link into `https://github.com/michael-o/tomcatspnegoad/%ISSUE%` because here (https://github.com/apache/maven-changes-plugin/blob/e85711fd246c505e5e088c16014afd2d5fe91e0c/src/main/java/org/apache/maven/plugins/changes/ChangesReportGenerator.java#L634-L646) it will chop off the last components, ignoring it will end with a slash or not.

---
No further details from [MCHANGES-411](https://issues.apache.org/jira/browse/MCHANGES-411?redirect=false)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

src/main/java/org/apache/maven/plugins/changes/ChangesReportGenerator.java の 634-646 行付近にある URL 処理から始めます。末尾のスラッシュがない issueManagement URL を使ってレポートを再現し、その後、生成された issue リンクが設定済みのベース URL を保持するように処理を調整し、結果のリンクを検証します。

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

評価

技術スタック
java
領域
build-system
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

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

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