ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jaikiran pai (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (IVY-1498) Mixed use of symlinks leads to cache corruption
Date Wed, 26 Jul 2017 13:01:14 GMT

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

jaikiran pai resolved IVY-1498.
-------------------------------
       Resolution: Fixed
         Assignee: jaikiran pai
    Fix Version/s: master

[~stephen], The upcoming release of Ivy requires Java 7 as a minimum version. So I went ahead
and borrowed the idea from your patch and applied a fix very similar to that one and included
a test case to verify it, in our master branch. Thanks for reporting this issue and also the
patch.

> Mixed use of symlinks leads to cache corruption
> -----------------------------------------------
>
>                 Key: IVY-1498
>                 URL: https://issues.apache.org/jira/browse/IVY-1498
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>            Reporter: Stephen Haberman
>            Assignee: jaikiran pai
>            Priority: Blocker
>             Fix For: master
>
>
> If a user switches between "use symlinks" or not (or, say, has ant/ivy configured with
symlinks but Eclipse/IvyDE without symlinks), the ivycache can be corrupted.
> Specifically, if a symlink was setup in symlink mode:
> lib/foo.jar --> ivycache/com/foo/foo-1.2.jar
> And then later we retrieve into lib without symlink mode, Ivy retrieve will write, say,
foo-1.3.jar's bytes into the lib/foo.jar location...which will then overwrite the foo-1.2.jar
bytes in the ivycache.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message