Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-681

Maven-Shared: Java7Support silently fails overwriting symlinks

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: maven-shared-utils
    • Labels:
      None

      Description

      When A is an existing symlink to B, then createSymbolicLink(A,C) does
      neither overwrite A->B by A->C (as expected in analogy to the behavior
      of copy(A,C)) nor does it throw an exception nor does it return A->B to
      indicate the failure, but it actually "silently fails", i. e. it returns
      A->C!

      This certainly is heavily problematic, unsymmetric to what
      copy(File,File) and Files.createSymbolicLink(Path,Path) do, and
      certainly unwanted and buggy behavior.

      The solution is to delete any existing target before creating the
      symlic, hence copying the behavior of copy(File,File).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mkarg Markus Karg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: