Skip to content

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

@jira-importer

Description

@jira-importer

Unassigned Developer opened MCHANGES-411 and commented

Consider the follwing block in your POM:

<issueManagement>
     <system>GitHub</system>
     <url>https://github.com/michael-o/tomcatspnegoad/issues</url>
</issueManagement>

The changes report will turn the issue link into https://github.com/michael-o/tomcatspnegoad/%ISSUE% because here (

private String parseIssueLink( String issue, String system )
{
String parseLink;
String issueLink = this.issueLinksPerSystem.get( system );
parseLink = issueLink.replaceFirst( ISSUE_TOKEN, issue );
if ( parseLink.contains( URL_TOKEN ) )
{
String url = this.url.substring( 0, this.url.lastIndexOf( "/" ) );
parseLink = parseLink.replaceFirst( URL_TOKEN, url );
}
return parseLink;
}
) it will chop off the last components, ignoring it will end with a slash or not.


No further details from MCHANGES-411

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions