[ http://jira.codehaus.org/browse/MNG-2207?page=all ]
     
John Casey closed MNG-2207:
---------------------------

      Assign To: John Casey
     Resolution: Fixed
    Fix Version: 2.0.4

Fixed by checking that the resulting value does not *contain* the original 
expression. Previously, we were only checking that the resulting value didn't 
*equal* the original expression. This should block:

{code:xml}
<project>
  ...
  <scm>
    <connection>${project.scm.connection}/rest/of/path</connection>
  </scm>
</project>
{code}

Since the interpolated value would be "${project.scm.connection}/rest/of/path".

The action taken in this circumstance is to throw a ModelInterpolationException.

> Infinite Recursion when POM element has value with substring that is 
> self-referencing 
> --------------------------------------------------------------------------------------
>
>          Key: MNG-2207
>          URL: http://jira.codehaus.org/browse/MNG-2207
>      Project: Maven 2
>         Type: Bug

>   Components: Inheritence and Interpolation
>     Versions: 2.0.3
>     Reporter: John Casey
>     Assignee: John Casey
>     Priority: Blocker
>      Fix For: 2.0.4

>
>
> This is an issue reported on the users list. I'm recording it here for 
> tracking purposes.
> Sample:
> {code:xml}
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>some.group</groupId>
>   <artifactId>some-artifact</artifactId>
>   <version>1</version>
>   <scm>
>     <connection>${project.scm.connection}/some/other/path</connection>
>   </scm>
> </project>
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to