You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/06/26 20:50:00 UTC

[jira] [Commented] (MNG-6937) StringSearchModelInterpolatorTest fails on symlinked paths

    [ https://issues.apache.org/jira/browse/MNG-6937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17370058#comment-17370058 ] 

Michael Osipov commented on MNG-6937:
-------------------------------------

Fixed with [a9f337fd63963b2017c7b057234f9a9e3e78be46|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=a9f337fd63963b2017c7b057234f9a9e3e78be46] for {{maven-3.8.x}} branch.

> StringSearchModelInterpolatorTest fails on symlinked paths
> ----------------------------------------------------------
>
>                 Key: MNG-6937
>                 URL: https://issues.apache.org/jira/browse/MNG-6937
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.6.3
>            Reporter: Michael Osipov
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: 3.8.2, 4.0.0, 4.0.0-alpha-1
>
>
> This one was found when using the newly modified {{run-its.sh}} with the Maven Wrapper.
> When Maven source base resides on a symlinked path {{StringSearchModelInterpolatorTest}} fails. A reduced test setup is:
> {{$HOME/var}} points to {{/var/<username>}}. Call is {{~/apache-maven-3.7.0-SNAPSHOT/bin/mvn -f ~/var/Projekte/maven  clean verify}}. The test fails with:
> {noformat}
> [INFO] Running org.apache.maven.model.interpolation.StringSearchModelInterpolatorTest
> [ERROR] Tests run: 34, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.09 s <<< FAILURE! - in org.apache.maven.model.interpolation.StringSearchModelInterpolatorTest
> [ERROR] testInterpolateObjectWithPomFile(org.apache.maven.model.interpolation.StringSearchModelInterpolatorTest)  Time elapsed: 0.01 s  <<< FAILURE!
> java.lang.AssertionError:
> Expected: is "/net/home/osipovmi/var/Projekte/maven/maven-model-builder"
>      but: was "/var/osipovmi/Projekte/maven/maven-model-builder"
>         at org.apache.maven.model.interpolation.StringSearchModelInterpolatorTest.testInterpolateObjectWithPomFile(StringSearchModelInterpolatorTest.java:362)
> {noformat}
> The bug is in the test which canonicalizes the {{buildDir}}, but not {{user.dir}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)