Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-3949

Subversion checkouts creates files for symlinks

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • subversion-plugin
    • None
    • Platform: All, OS: Linux

    Description

      The check out of project containing checked in symlinks creates a workspace
      with files instead of symlinks. E.g., creating a repository containing
      the elements:

      $ svn co file://$PWD/test/trunk/data
      A data/file.link
      A data/file.txt
      Checked out revision 3.
      $ ls -l data
      total 12
      lrwxrwxrwx 1 mrohan mrohan 8 Jun 28 17:55 file.link -> file.txt
      rw-rw-r- 1 mrohan mrohan 16 Jun 28 17:55 file.txt

      Within Hudson, the workspace contains the elements:

      $ ls -l data
      total 16
      rw-rw-r- 1 hudson hudson 13 Jun 28 17:53 file.link
      rw-rw-r- 1 hudson hudson 16 Jun 28 17:53 file.txt
      $ cat data/file.link
      link file.txt

      There is no newline in the file created.

      Attachments

        1. output.1.310.txt
          0.5 kB
          mkrohan
        2. output.1.311.txt
          0.5 kB
          mkrohan
        3. svnkit.w-def.0.log
          12 kB
          mkrohan
        4. svnkit.wo-def.0.log
          12 kB
          mkrohan

        Issue Links

          Activity

            mkrohan mkrohan added a comment -

            Created an attachment (id=770)
            SVNKit log file with -Dsvnkit.symlinks=true on cmd line

            mkrohan mkrohan added a comment - Created an attachment (id=770) SVNKit log file with -Dsvnkit.symlinks=true on cmd line
            dodok1 dodok1 added a comment -

            I wuold like to point out that there is simple test case in
            SubversionSCMTest::testSymbolicLinkCheckout() to check this problem.

            I think that this problem has something to do with JNA.

            dodok1 dodok1 added a comment - I wuold like to point out that there is simple test case in SubversionSCMTest::testSymbolicLinkCheckout() to check this problem. I think that this problem has something to do with JNA.
            dodok1 dodok1 added a comment -

            After correcting my test case , I approve that solution is to remove those
            lines setting svnkit.symlinks to true.
            The issue with slow checkouts was solved in svnkit 1.3.0 using JNA.

            As soon as I will test in on the real deployment, I will commit that change.

            dodok1 dodok1 added a comment - After correcting my test case , I approve that solution is to remove those lines setting svnkit.symlinks to true. The issue with slow checkouts was solved in svnkit 1.3.0 using JNA. As soon as I will test in on the real deployment, I will commit that change.
            dodok1 dodok1 added a comment -

            solved in trunk, removed obsolete workaround

            dodok1 dodok1 added a comment - solved in trunk, removed obsolete workaround
            tommythekid Tommy McNeely added a comment -

            If anyone else thinks they are being bit by this very old bug, please check to see if you are actually affected by https://issues.jenkins-ci.org/browse/JENKINS-14217 ... which is what was getting us.

            ~tommy

            tommythekid Tommy McNeely added a comment - If anyone else thinks they are being bit by this very old bug, please check to see if you are actually affected by https://issues.jenkins-ci.org/browse/JENKINS-14217 ... which is what was getting us. ~tommy

            People

              Unassigned Unassigned
              mkrohan mkrohan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: