Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5384

Optional dependencies in MINA SSHD Core cause system bundle refreshes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 4.1.0, 4.1.1, 4.1.2
    • 4.2.0
    • karaf
    • None
    • Fedora Linux

    Description

      In similar fashion to KARAF-5251, if you install any feature in Karaf that includes:

      • Apache MINA
      • bouncycastle
      • net.i2p.crypto

      it will cause the MINA SSHD Core bundle to refresh, which in turn refreshes most of the core framework bundles. This has a variety of bad effects including:

      • Terminating the current SSH session
      • Terminating subsequent feature installations

      This is more severe than KARAF-5251 because these libraries are not part of the core Karaf distro so it is not possible to add them to startup.properties without first repackaging Karaf to contain the desired bundles in the /system directory.

      This also makes testing any Karaf feature that contains MINA, bouncycastle, or net.i2p.crypto impossible in Pax Exam (unless you use org.apache.karaf.features.FeaturesService.Option.NoAutoRefreshBundles or feature:install -r) because the refresh invalidates @Inject references in your test as the core bundles are refreshed.

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              soleger Seth Leger
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: