maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (MSHARED-392) AbstractMavenReportRenderer#applyPattern(String) chokes on some specific input and produces useless segments
Date Thu, 30 Jul 2015 18:26:05 GMT

     [ https://issues.apache.org/jira/browse/MSHARED-392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Scholte closed MSHARED-392.
----------------------------------
       Resolution: Fixed
         Assignee: Robert Scholte
    Fix Version/s: maven-reporting-impl 3.0

Fixed in [r1693466|http://svn.apache.org/r1693466]. 
Root cause: wrong calculation of offset when there are 2 or more links in 1 line.

> AbstractMavenReportRenderer#applyPattern(String) chokes on some specific input and produces
useless segments
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: MSHARED-392
>                 URL: https://issues.apache.org/jira/browse/MSHARED-392
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-reporting-impl
>    Affects Versions: maven-reporting-impl-2.3
>            Reporter: Michael Osipov
>            Assignee: Robert Scholte
>             Fix For: maven-reporting-impl 3.0
>
>
> Consider this input:
> {noformat}
> {Indiana University Extreme! Lab Software License, vesion 1.1.1,http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt}{Public
Domain,http://creativecommons.org/licenses/publicdomain}{Apache Software License, version
1.1,http://www.apache.org/licenses/LICENSE-1.1}
> {noformat}
> It should be broken up into six segments. The output of {{applyPattern}} is:
> {noformat}
> [0]	"Indiana University Extreme! Lab Software License, vesion 1.1.1" (id=321)
> [1]	"http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/LICENSE.txt" (id=322)
> [2]	"" (id=323)
> [3]	null
> [4]	"Public Domain" (id=324)
> [5]	"http://creativecommons.org/licenses/publicdomain" (id=325)
> [6]	"" (id=326)
> [7]	null
> [8]	"Apache Software License, version 1.1" (id=328)
> [9]	"http://www.apache.org/licenses/LICENSE-1.1" (id=329)
> {noformat}
> and the output is incorrectly generated.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message