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

Wrong username used for login to SVN

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: subversion-plugin
    • Labels:
      None
    • Environment:
      Platform: Other, OS: Linux

      Description

      After a recent upgrade (I do not remember from which version, but the problem
      occurs as of release 290), Hudson is unable to connect to our SVN server to
      check out the project.

      The authentication method is username/password. The project is configured to use
      "pangu" as the username, but the administrator of the SVN server reports that
      the actual password supplied is "hudson" (which is the owner of the Hudson process).

      I've deleted "hudson.scm.SubversionSCM.xml" in an attempt to start again
      (restarted Hudson after deletion), and even used a different browser to enter
      credentials to avoid caching. The "hudson.scm.SubversionSCM.xml" is recreated,
      but yet the wrong username is sent.

      It seems that no matter what valid username/password we use for "Enter
      Credentials", the username is accepted, "hudson.scm.SubversionSCM.xml" is
      updated, and upon building the project the "hudson" username is passed rather
      than the configured username.

        Activity

        msell msell created issue -
        Hide
        msell msell added a comment -

        A log of the exception:

        Mar 11, 2009 11:26:52 AM hudson.scm.SubversionSCM$DescriptorImpl$2 check
        INFO: Failed to access subversion repository
        https://engsvnhost.tc.fluke.com/repos/fpm.pangu
        org.tmatesoft.svn.core.SVNAuthenticationException: svn: OPTIONS of
        '/repos/fpm.pangu': 403 Forbidden (https://engsvnhost.tc.fluke.com)
        at
        org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:62)
        at
        org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
        at
        org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:595)
        at
        org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:257)
        at
        org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:245)
        at
        org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:454)
        at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:97)
        at
        org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:664)
        at
        org.tmatesoft.svn.core.internal.io.dav.DAVRepository.testConnection(DAVRepository.java:96)
        at
        hudson.scm.SubversionSCM$DescriptorImpl.checkRepositoryPath(SubversionSCM.java:1519)
        at hudson.scm.SubversionSCM$DescriptorImpl$2.check(SubversionSCM.java:1460)
        at hudson.util.FormFieldValidator.process(FormFieldValidator.java:135)
        at
        hudson.scm.SubversionSCM$DescriptorImpl.doSvnRemoteLocationCheck(SubversionSCM.java:1437)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:156)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:76)
        at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
        at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:356)
        at org.kohsuke.stapler.Stapler.service(Stapler.java:116)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
        at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
        at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91)
        at
        org.jvnet.hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:38)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
        at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:75)
        at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:67)
        at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:133)
        at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
        at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
        at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
        at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
        at java.lang.Thread.run(Thread.java:619)

        Show
        msell msell added a comment - A log of the exception: Mar 11, 2009 11:26:52 AM hudson.scm.SubversionSCM$DescriptorImpl$2 check INFO: Failed to access subversion repository https://engsvnhost.tc.fluke.com/repos/fpm.pangu org.tmatesoft.svn.core.SVNAuthenticationException: svn: OPTIONS of '/repos/fpm.pangu': 403 Forbidden ( https://engsvnhost.tc.fluke.com ) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:62) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:595) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:257) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:245) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:454) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:97) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:664) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.testConnection(DAVRepository.java:96) at hudson.scm.SubversionSCM$DescriptorImpl.checkRepositoryPath(SubversionSCM.java:1519) at hudson.scm.SubversionSCM$DescriptorImpl$2.check(SubversionSCM.java:1460) at hudson.util.FormFieldValidator.process(FormFieldValidator.java:135) at hudson.scm.SubversionSCM$DescriptorImpl.doSvnRemoteLocationCheck(SubversionSCM.java:1437) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:156) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:76) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:356) at org.kohsuke.stapler.Stapler.service(Stapler.java:116) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91) at org.jvnet.hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:38) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:75) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:67) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:133) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:619)
        Hide
        stefanbrausch Stefan Brausch added a comment -

        In my opinion Hudson tries first to use the credentials that are stored in the
        .subversion directory in the users home directory who hudson started.
        After we deleted (or better moved this directory, Hudson used the right user
        credentials.

        regards,
        stedn

        Show
        stefanbrausch Stefan Brausch added a comment - In my opinion Hudson tries first to use the credentials that are stored in the .subversion directory in the users home directory who hudson started. After we deleted (or better moved this directory, Hudson used the right user credentials. regards, stedn
        Hide
        stephenconnolly stephenconnolly added a comment -

        The change in credentials management in 2.0+ should have fixed this issue

        Show
        stephenconnolly stephenconnolly added a comment - The change in credentials management in 2.0+ should have fixed this issue
        stephenconnolly stephenconnolly made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            msell msell
          • Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: