[
https://issues.apache.org/jira/browse/SSHD-736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15951085#comment-15951085
]
Goldstein Lyor commented on SSHD-736:
-------------------------------------
Hi David,
In version 1.4 we have overhauled the security providers infra-structure in
order to allow for pluggable providers, We do have tests in place for the
{{SftpFileSystemProvider}} - but since we do not "boot" the system in any way
(whatever "boot" may mean for you) I guess we have not explored all the
possible ways in which SSHD code may be used. Off the top of my head seems like
this is some kind of class loading race condition. I will start looking into
it, but it may take a while since I am busy with my day job (SSHD is a passion
... :-)) - so it may take a few weeks (:-() until I resolve it.
As a temporary fix why not re-package the JAR and remove the system provider
file (just to see if it helps) - assuming you don't use {{sftp://xxxx}} URLs
you should have no problem.
> Filesystem collision in development environment
> -----------------------------------------------
>
> Key: SSHD-736
> URL: https://issues.apache.org/jira/browse/SSHD-736
> Project: MINA SSHD
> Issue Type: Question
> Affects Versions: 1.4.0
> Environment: Linux, Gerrit
> Reporter: David Ostrovsky
> Assignee: Goldstein Lyor
> Priority: Minor
>
> In the development environment, we are using java filesystem,
> to short circuit loading of servlets for the JavaScript Polymer UI.
> Since upgrade to 1.4.0 Gerrit refuses to start in such dev environment.
> I seems, that during start of FileSystem, it loads all file system providers
> on the classpath. Since sshd-core is on the lcasspath, it's trying to load
> also {{SftpFileSystemProvider}}, and is failing with class custom exception:
> [1].
> Note, that we don't do that when booting release gerrit version, so we
> do see this poblem only in the development environment.
> We have 2 work arounds so far: disable file system usage in gerrit in this
> code path: [2], or use custom built sshd-core version without this file[3]:
>
> {{sshd-core/src/main/filtered-resources/META-INF/services/java.nio.file.spi.FileSystemProvider}}
> * [1] http://paste.openstack.org/show/604912
> * [2] http://paste.openstack.org/show/604911
> * [3] http://paste.openstack.org/show/604917
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)