Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1498

Mixed use of symlinks leads to cache corruption

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0-rc1
    • Component/s: Core
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              jaikiran jaikiran pai
              Reporter:
              stephen Stephen Haberman
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: