You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2009/12/14 19:20:55 UTC

[jira] Created: (SCM-513) Empty password is not propagated to server

Empty password is not propagated to server
------------------------------------------

                 Key: SCM-513
                 URL: http://jira.codehaus.org/browse/SCM-513
             Project: Maven SCM
          Issue Type: Bug
          Components: maven-plugin, maven-scm-provider-svn
    Affects Versions: 1.2
            Reporter: Benjamin Bentmann
         Attachments: empty-password.patch

For instance, the command
{noformat}
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="
{noformat}
fails with
{noformat}
authorization failed: Could not authenticate to server: rejected Basic challenge (https://svn.dev.java.net)
{noformat}
because the issued cmd line is
{noformat}
cmd.exe /X /C "svn --username guest --non-interactive checkout https://...
{noformat}
instead of
{noformat}
cmd.exe /X /C "svn --username guest --password "" --non-interactive checkout https://...
{noformat}
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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira