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

Update to 2.10.4 causes NullPointerException in HTTPDigestAuthentication.createDigest

    Details

    • Similar Issues:

      Description

      I am unable to update the description field, so I will put that here.
      Was running 2.10.3 of the subversion plugin. Today, updated to 2.10.4 and all attempts to use the plugin result in

      java.lang.NullPointerException
      	at org.tmatesoft.svn.core.internal.io.dav.http.HTTPDigestAuthentication.createDigest(HTTPDigestAuthentication.java:158)
      	at org.tmatesoft.svn.core.internal.io.dav.http.HTTPDigestAuthentication.authenticate(HTTPDigestAuthentication.java:79)
      	at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:431)
      	at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:352)
      	at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:340)
      	at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:888)
      	at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:693)
      	at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:113)
      	at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1031)
      	at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.testConnection(DAVRepository.java:75)
      	at hudson.scm.SubversionSCM$DescriptorImpl.checkRepositoryPath(SubversionSCM.java:2349)
      	at hudson.scm.SubversionSCM$DescriptorImpl.checkRepositoryPath(SubversionSCM.java:2340)
      	at hudson.scm.SubversionSCM.repositoryLocationsNoLongerExist(SubversionSCM.java:2596)
      	at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:907)
      	at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:864)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113)
      	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:143)
      	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:271)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE
      

      Rolled back to the previous version (2.10.3) and it works fine.

        Attachments

          Issue Links

            Activity

            Hide
            klamb Ken Lamb added a comment -

            When you attempted to replicate the issue, did you test against an SVN that was using HTTP digest?

            Show
            klamb Ken Lamb added a comment - When you attempted to replicate the issue, did you test against an SVN that was using HTTP digest?
            Hide
            ifernandezcalvo Ivan Fernandez Calvo added a comment - - edited

            yep, the Digest authentification seems broken on the SVNKit library, it does not parse the nonce parameter on the response, for the moment the only solution is to downgrade to 2.10.3, that uses the previous SVNKit library.

            Show
            ifernandezcalvo Ivan Fernandez Calvo added a comment - - edited yep, the Digest authentification seems broken on the SVNKit library, it does not parse the nonce parameter on the response, for the moment the only solution is to downgrade to 2.10.3, that uses the previous SVNKit library.
            Hide
            ifernandezcalvo Ivan Fernandez Calvo added a comment - - edited

            I just tested the new version of the library 1.9.3 and the issue is resolved in that version, I am gonna upgrade the library. On the master branch the library is in 1.9.3 so I will release it.

            Show
            ifernandezcalvo Ivan Fernandez Calvo added a comment - - edited I just tested the new version of the library 1.9.3 and the issue is resolved in that version, I am gonna upgrade the library. On the master branch the library is in 1.9.3 so I will release it.
            Hide
            ifernandezcalvo Ivan Fernandez Calvo added a comment -

            It should be resolved in 2.11.1

            Show
            ifernandezcalvo Ivan Fernandez Calvo added a comment - It should be resolved in 2.11.1
            Hide
            klamb Ken Lamb added a comment -

            Thank you very much for looking into this.
            We have updated the plugin and initial testing looks good!

            Show
            klamb Ken Lamb added a comment - Thank you very much for looking into this. We have updated the plugin and initial testing looks good!

              People

              • Assignee:
                ifernandezcalvo Ivan Fernandez Calvo
                Reporter:
                klamb Ken Lamb
              • Votes:
                4 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: