Maven SCM
  1. Maven SCM
  2. SCM-513

Empty password is not propagated to server

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Labels:
      None
    • Flags:
      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.

      1. empty-password.patch
        2 kB
        Benjamin Bentmann

        Activity

        Benjamin Bentmann created issue -
        Olivier Lamy (*$^¨%`£) made changes -
        Field Original Value New Value
        Assignee Olivier Lamy [ olamy ]
        Hide
        Michael Osipov added a comment -

        Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

        Assignee, if you think you can fix this bug anytime soon, please reopen and proceed appropriately.

        Show
        Michael Osipov added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out. Assignee, if you think you can fix this bug anytime soon, please reopen and proceed appropriately.
        Michael Osipov made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 12:22:36 UTC 2015 [ 1428236556206 ]
        Mark Thomas made changes -
        Workflow jira [ 12725519 ] Default workflow, editable Closed status [ 12757825 ]
        Mark Thomas made changes -
        Patch Submitted Yes [ 10763 ]
        Flags Patch [ 10430 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:08:37 UTC 2015 [ 1428282517778 ]
        Mark Thomas made changes -
        Workflow jira [ 12963346 ] Default workflow, editable Closed status [ 13000727 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        1807d 2h 16m 1 Michael Osipov 25/Nov/14 14:35

          People

          • Assignee:
            Olivier Lamy (*$^¨%`£)
            Reporter:
            Benjamin Bentmann
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development