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

workspace with symlink causes svn exception when updating externals

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: subversion-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: Linux
    • Similar Issues:

      Description

      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)

        Attachments

          Issue Links

            Activity

            kaxelson kaxelson created issue -
            Hide
            scm_issue_link 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.

            Show
            scm_issue_link 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.
            scm_issue_link SCM/JIRA link daemon made changes -
            Field Original Value New Value
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            abayer Andrew Bayer made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            evernat evernat made changes -
            Link This issue is duplicated by JENKINS-3013 [ JENKINS-3013 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 133605 ] JNJira + In-Review [ 202286 ]

              People

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

                Dates

                Created:
                Updated:
                Resolved: