You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2019/07/25 19:53:25 UTC

[maven-wagon] branch WAGON-564 created (now 941a0b3)

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a change to branch WAGON-564
in repository https://gitbox.apache.org/repos/asf/maven-wagon.git.


      at 941a0b3  [WAGON-564] SSH connection failure because 'preferredAuthentications' option is ignored if password isn't set

This branch includes the following new commits:

     new 941a0b3  [WAGON-564] SSH connection failure because 'preferredAuthentications' option is ignored if password isn't set

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-wagon] 01/01: [WAGON-564] SSH connection failure because 'preferredAuthentications' option is ignored if password isn't set

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch WAGON-564
in repository https://gitbox.apache.org/repos/asf/maven-wagon.git

commit 941a0b387a8437e897b73d6728af33c7129915ac
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Thu Jul 25 21:52:05 2019 +0200

    [WAGON-564] SSH connection failure because 'preferredAuthentications' option is ignored if password isn't set
---
 .../org/apache/maven/wagon/providers/ssh/jsch/AbstractJschWagon.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/jsch/AbstractJschWagon.java b/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/jsch/AbstractJschWagon.java
index 7e87d2d..2e94cbc 100644
--- a/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/jsch/AbstractJschWagon.java
+++ b/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/jsch/AbstractJschWagon.java
@@ -96,7 +96,7 @@ public abstract class AbstractJschWagon
     private volatile InteractiveUserInfo interactiveUserInfo;
 
     /**
-     * @plexus.configuration default-value="gssapi-with-mic,publickey,password,keyboard-interactive"
+     * @plexus.configuration
      */
     private volatile String preferredAuthentications;
 
@@ -251,7 +251,7 @@ public abstract class AbstractJschWagon
             config.setProperty( "StrictHostKeyChecking", strictHostKeyChecking );
         }
 
-        if ( authenticationInfo.getPassword() != null )
+        if ( preferredAuthentications != null )
         {
             config.setProperty( "PreferredAuthentications", preferredAuthentications );
         }