apache / apache/maven-changes-plugin

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

Open
#281 2 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
15
Forks
22
Avg merge
8h 1m
Merged PRs (30d)
3

Description

**[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)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in src/main/java/org/apache/maven/plugins/changes/ChangesReportGenerator.java at the URL handling around lines 634-646. Reproduce the report with an issueManagement URL that lacks a trailing slash, then adjust the handling so the generated issue link retains the configured base URL and verify the resulting link.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.