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

Jenkins fails to rewrite authentication file - svn operation is aborted but would succeed if jenkins would proceed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • subversion-plugin
    • None
    • Linux, JDK 6

      Jenkins does want to rewrite the authentication svn files, but is not permitted to do so (which is intentional). The operation itself would succeed because credentials are correct, but because jenkins is unable to rename those file, exception is thrown and the complete operation is aborted.

      org.tmatesoft.svn.core.SVNException: svn: Cannot rename file '/home/jenkins/.subversion/auth/svn.simple/auth.b4497712-3201-0010-92fc-211d0dd7ba71.tmp' to '/home/jenkins/.subversion/auth/svn.simple/1755861b3f63d264955a25532195c4f8'
              at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
              at org.tmatesoft.svn.core.internal.wc.SVNFileUtil.rename(SVNFileUtil.java:552)
              at org.tmatesoft.svn.core.internal.wc.SVNWCProperties.setProperties(SVNWCProperties.java:352)
              at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager$PersistentAuthenticationProvider.saveAuthentication(DefaultSVNAuthenticationManager.java:810)
              at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.acknowledgeAuthentication(DefaultSVNAuthenticationManager.java:276)
              at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:606)
              at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:275)
              at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:263)
              at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516)
              at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
              at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1001)
              at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.info(DAVRepository.java:724)
              at hudson.scm.SubversionSCM$CheckOutTask.checkClockOutOfSync(SubversionSCM.java:731)
              at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:708)
              at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:690)
              at hudson.FilePath.act(FilePath.java:758)
              at hudson.FilePath.act(FilePath.java:740)
              at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:683)
              at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:632)
              at hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
              at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555)
              at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443)
              at hudson.model.Run.run(Run.java:1376)
              at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
              at hudson.model.ResourceController.execute(Resource
      

      Jenkins should be able to use entered credentials, but must no rewrite them when there is no need to to so, because they are not changed - at least it should not fail the complete op if credentials are successfull but caching them does fail (because their are already valid credentials writte to the file).

      This is related to: https://issues.jenkins-ci.org/browse/JENKINS-8059 where the same behaviour is already described, but i was advised to open a seperate bug for this one.

            Unassigned Unassigned
            tkrah Torsten Krah
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: