Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-513

Empty password is not propagated to server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.2
    • None
    • None
    • Patch

    Description

      For instance, the command

      mvn org.apache.maven.plugins:maven-scm-plugin:1.2:checkout
        -D connectionUrl=scm:svn:https://svn.dev.java.net/svn/hudson/tags/build-timeout-1.5/
        -D checkoutDirectory=test
        -D username=guest -D "password="
      

      fails with

      authorization failed: Could not authenticate to server: rejected Basic challenge (https://svn.dev.java.net)
      

      because the issued cmd line is

      cmd.exe /X /C "svn --username guest --non-interactive checkout https://...
      

      instead of

      cmd.exe /X /C "svn --username guest --password "" --non-interactive checkout https://...
      

      i.e. the empty password is not propagated to the server, making the auth challenge fail.

      Note: To reproduce this issue, the svn client's auth cache in auth/svn.simple must be empty. Otherwise, a the cached auth data from a successful login will shadow the issue.

      Attachments

        1. empty-password.patch
          2 kB
          Benjamin Bentmann

        Activity

          People

            olamy Olivier Lamy
            bentmann Benjamin Bentmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: