[ 
https://issues.apache.org/jira/browse/SSHD-732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15934795#comment-15934795
 ] 

Goldstein Lyor edited comment on SSHD-732 at 3/21/17 4:05 PM:
--------------------------------------------------------------

Hi Guillaume,

Have you run full unit tests on the code ? I am getting quite a few failures - 
I have fixed one, but there are others that are failing for reasons beyond me 
(I have not had time to explore them in depth). Specifically,:

* The code for {{BuiltinClientIdentitiesWatcherTest#testMultipleFilesWatch}} 
has to be fixed as follows:
{code:java}
Iterable<KeyPair> keys = watcher.loadKeys();
Collection<KeyPair> actual = new ArrayList<>();
for (KeyPair kp : keys) {
     actual.add(kp);
}
{code}

* {{AuthenticationTest#testPublicKeyAuthDifferentThanKex}} now fails 
consistently.

If you want a debuggable version to work on (one that also contains EDDSA and 
compiles) then check out [my clone|https://github.com/lgoldstein/mina-sshd] and 
switch to `eddsa` branch


was (Author: lgoldstein):
Hi Guillaume,

Have you run full unit tests on the code ? I am getting quite a few failures - 
I have fixed one, but there are others that are failing for reasons beyond me 
(I have not had time to explore them in depth). Specifically,:

* The code for {{BuiltinClientIdentitiesWatcherTest#testMultipleFilesWatch}} 
has to be fixed as follows:
{code:java}
Iterable<KeyPair> keys = watcher.loadKeys();
Collection<KeyPair> actual = new ArrayList<>();
for (KeyPair kp : keys) {
     actual.add(kp);
}
{code}

* {{AuthenticationTest#testPublicKeyAuthDifferentThanKex}} now fails 
consistently.

> ClientIdentitiesWatcher should load keys one at a time
> ------------------------------------------------------
>
>                 Key: SSHD-732
>                 URL: https://issues.apache.org/jira/browse/SSHD-732
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 1.4.0
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>            Priority: Minor
>             Fix For: 1.5.0
>
>
> The keys are loaded into a List<KeyPair> instead of using an 
> Iterable<KeyPair> which could allow lazy loading the keys.
> The problem is that loading keys can require passwords, thus asking the user 
> for passwords which may not be used.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to