[ 
http://jira.codehaus.org/browse/MNG-4579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=230432#action_230432
 ] 

Heinrich Schuchardt commented on MNG-4579:
------------------------------------------

>> Had a quick look at it, problem is located inside plexus-interactivity-api
>> dependency, which handles readPassword() the same way like readLine().

Do you refer to:

// revision 7276
package org.codehaus.plexus.components.interactivity.jline;
import jline.ConsoleReader;
public class JLineInputHandler
   public String readPassword()
       throws IOException {
       return consoleReader.readLine( new Character( '*' ) );
   }
   public String readLine()
       throws IOException {
       return consoleReader.readLine();
   }




> Maven Wagon SSH does not mask password
> --------------------------------------
>
>                 Key: MNG-4579
>                 URL: http://jira.codehaus.org/browse/MNG-4579
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.2.1
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_17
> Java home: C:\program Files\Java\jdk1.6.0_17\jre
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>            Reporter: Heinrich Schuchardt
>            Priority: Minor
>
> I am using 
> mvn site:deploy
> with scp as protocol.
> When uploading mvn asks for the ssh password. The password is displayed 
> instead of being masked by ****.
> To reproduce the issue try the following:
> mvn wagon:upload-single -Dwagon.fromFile=c:\temp\test.mhtml 
> -Dwagon.url="scp:www.myserver.com/home/myuser/temp"
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'wagon'.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building Io
> [INFO]    task-segment: [wagon:upload-single] (aggregator-style)
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [wagon:upload-single {execution: default-cli}]
> Password for myu...@www.myserver.com: password

-- 
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


Reply via email to