Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-736

Filesystem collision in development environment

    XMLWordPrintableJSON

Details

    • Question
    • Status: Resolved
    • Minor
    • Resolution: Workaround
    • 1.4.0
    • None
    • None
    • Linux, Gerrit

    Description

      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

      Attachments

        Activity

          People

            lgoldstein Lyor Goldstein
            davido2 David Ostrovsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: