You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2015/11/23 09:50:11 UTC

[jira] [Assigned] (SSHD-590) [tests] skip EC tests if EC is not available at JRE

     [ https://issues.apache.org/jira/browse/SSHD-590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Goldstein Lyor reassigned SSHD-590:
-----------------------------------

    Assignee: Goldstein Lyor

> [tests] skip EC tests if EC is not available at JRE
> ---------------------------------------------------
>
>                 Key: SSHD-590
>                 URL: https://issues.apache.org/jira/browse/SSHD-590
>             Project: MINA SSHD
>          Issue Type: Task
>    Affects Versions: 1.1.0
>         Environment: Fedora
> $ java -version
> openjdk version "1.8.0_60"
> OpenJDK Runtime Environment (build 1.8.0_60-b27)
> OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode)
> Gentoo
> openjdk version "1.8.0_60"
> OpenJDK Runtime Environment (IcedTea 3.0.0pre06+ra9817b9f8a21) (Gentoo icedtea-3.0.0_pre06)
> OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode)
>            Reporter: Alon Bar-Lev
>            Assignee: Goldstein Lyor
>            Priority: Minor
>         Attachments: 0001-tests-AuthorizedKeysAuthenticatorTest-accept-ec-keys.patch, 0001-tests-AuthorizedKeysAuthenticatorTest-accept-ec-keys.patch
>
>
> In cases SunEC provider is not available like in the above, EC tests should be skipped.
> {noformat}
>   SignatureECDSAFactoryTest.testECDSAPublicKeyAuth[keySize=nistp256] »
> Ssh Sessi...
>   SignatureECDSAFactoryTest.testECDSAPublicKeyAuth[keySize=nistp384] »
> Ssh Sessi...
>   SignatureECDSAFactoryTest.testECDSAPublicKeyAuth[keySize=nistp521] »
> Ssh Sessi...
> org.apache.sshd.common.signature.SignatureECDSAFactoryTest-output.txt
> ---
> Starting org.apache.sshd.common.signature.SignatureECDSAFactoryTest:testECDSAPublicKeyAuth[keySize=nistp256]...
> Generated key pair for nistp256[256]
> 2015-11-13 20:15:57,322 | INFO  | main             | SshServer
>                | org.apache.sshd.server.SshServer
>             319 | start() listen on auto-allocated port=43117
> 2015-11-13 20:15:57,324 | INFO  | 1]-nio2-thread-1 | ServerSessionImpl
>                | org.apache.sshd.server.session.ServerSessionImpl
>              63 | Server session created from /127.0.0.1:36892
> 2015-11-13 20:15:57,337 | WARN  | 1]-nio2-thread-2 | ServerSessionImpl
>                | org.apache.sshd.common.session.AbstractSession
>             544 | Exception caught
> java.security.SignatureException: Could not sign data
> at sun.security.ec.ECDSASignature.engineSign(ECDSASignature.java:297)
> at java.security.Signature$Delegate.engineSign(Signature.java:1205)
> at java.security.Signature.sign(Signature.java:578)
> at org.apache.sshd.common.signature.SignatureECDSA.sign(SignatureECDSA.java:46)
> at org.apache.sshd.server.kex.DHGServer.next(DHGServer.java:124)
> at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:421)
> at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:361)
> at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:901)
> at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:341)
> at org.apache.sshd.common.session.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:59)
> at org.apache.sshd.common.io.nio2.Nio2Session$2.onCompleted(Nio2Session.java:220)
> at org.apache.sshd.common.io.nio2.Nio2Session$2.onCompleted(Nio2Session.java:212)
> at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:37)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:34)
> at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
> at sun.nio.ch.Invoker.invokeDirect(Invoker.java:157)
> at sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:553)
> at sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:276)
> at sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:297)
> at java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)
> at org.apache.sshd.common.io.nio2.Nio2Session.doReadCycle(Nio2Session.java:247)
> at org.apache.sshd.common.io.nio2.Nio2Session$2.onCompleted(Nio2Session.java:224)
> at org.apache.sshd.common.io.nio2.Nio2Session$2.onCompleted(Nio2Session.java:212)
> at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:37)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:34)
> at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
> at sun.nio.ch.Invoker.invokeDirect(Invoker.java:157)
> at sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:553)
> at sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:276)
> at sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:297)
> at java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)
> at org.apache.sshd.common.io.nio2.Nio2Session.doReadCycle(Nio2Session.java:247)
> at org.apache.sshd.common.io.nio2.Nio2Session$2.onCompleted(Nio2Session.java:224)
> at org.apache.sshd.common.io.nio2.Nio2Session$2.onCompleted(Nio2Session.java:212)
> at org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:37)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:34)
> at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
> at sun.nio.ch.Invoker$2.run(Invoker.java:218)
> at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.security.KeyException
> at sun.security.ec.ECDSASignature.signDigest(Native Method)
> at sun.security.ec.ECDSASignature.engineSign(ECDSASignature.java:293)
> ... 44 more
> Finished org.apache.sshd.common.signature.SignatureECDSAFactoryTest:testECDSAPublicKeyAuth[keySize=nistp256]
> in 21 ms
> ---
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)