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

workspace with symlink causes svn exception when updating externals

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • subversion-plugin
    • None
    • Platform: All, OS: Linux

      I have a workspace that references a symlink. When an svn update occurs, svn
      externals fail with an error like this:

      ERROR: Failed to parse svn info for external
      http://10.1.42.211/svn/textura/lib/j4j/1.0 at
      portal/home/tomcat/hudson/workspace/portal/lib//j4j
      org.tmatesoft.svn.core.SVNException: svn:
      '/opt/cpms/hudson/workspace/portal/home/tomcat/hudson/workspace/portal/lib' is
      not a working copy
      at
      org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
      at
      org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.open(SVNAdminAreaFactory.java:149)
      at
      org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.doOpen(SVNWCAccess.java:355)
      at org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:263)
      at
      org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess.java:290)
      at
      org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess.java:275)
      at org.tmatesoft.svn.core.wc.SVNWCClient.crawlEntries(SVNWCClient.java:3027)
      at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2271)
      at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2647)
      at hudson.scm.SubversionSCM$BuildRevisionMapTask.invoke(SubversionSCM.java:780)
      at hudson.scm.SubversionSCM$BuildRevisionMapTask.invoke(SubversionSCM.java:750)
      at hudson.FilePath.act(FilePath.java:552)
      at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:426)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:807)
      at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:314)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266)
      at hudson.model.Run.run(Run.java:923)
      at hudson.model.Build.run(Build.java:112)
      at hudson.model.ResourceController.execute(ResourceController.java:93)
      at hudson.model.Executor.run(Executor.java:119)

          [JENKINS-3532] workspace with symlink causes svn exception when updating externals

          Code changed in hudson
          User: : kaxelson
          Path:
          trunk/hudson/main/core/src/main/java/hudson/scm/SubversionEventHandlerImpl.java
          trunk/hudson/main/core/src/main/java/hudson/scm/SubversionUpdateEventHandler.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=17384
          Log:
          JENKINS-3532: [FIXED JENKINS-3532]
          Changed getAbsolutePath to getCanonicalPath so it would handle symlinks. Also added necessary exception handling since getCanonicalPath throws IOException.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kaxelson Path: trunk/hudson/main/core/src/main/java/hudson/scm/SubversionEventHandlerImpl.java trunk/hudson/main/core/src/main/java/hudson/scm/SubversionUpdateEventHandler.java http://fisheye4.cenqua.com/changelog/hudson/?cs=17384 Log: JENKINS-3532 : [FIXED JENKINS-3532] Changed getAbsolutePath to getCanonicalPath so it would handle symlinks. Also added necessary exception handling since getCanonicalPath throws IOException.

          Code changed in hudson
          User: : kaxelson
          Path:
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=17385
          Log:
          JENKINS-3532:
          Added changelog message

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kaxelson Path: trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=17385 Log: JENKINS-3532 : Added changelog message

            kaxelson kaxelson
            kaxelson kaxelson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: