Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4F6CC200D16 for ; Tue, 10 Oct 2017 12:32:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4DEB0160BE3; Tue, 10 Oct 2017 10:32:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 92D431609E5 for ; Tue, 10 Oct 2017 12:32:04 +0200 (CEST) Received: (qmail 42826 invoked by uid 500); 10 Oct 2017 10:32:03 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 42815 invoked by uid 99); 10 Oct 2017 10:32:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2017 10:32:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id DC7861A5192 for ; Tue, 10 Oct 2017 10:32:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 6SeCrlYSBdh9 for ; Tue, 10 Oct 2017 10:32:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id B82A260D3F for ; Tue, 10 Oct 2017 10:32:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 95059E0051 for ; Tue, 10 Oct 2017 10:32:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 559EB24384 for ; Tue, 10 Oct 2017 10:32:00 +0000 (UTC) Date: Tue, 10 Oct 2017 10:32:00 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-5384) Optional dependencies in MINA SSHD Core cause system bundle refreshes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 10 Oct 2017 10:32:05 -0000 [ https://issues.apache.org/jira/browse/KARAF-5384?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1619= 8491#comment-16198491 ]=20 Jean-Baptiste Onofr=C3=A9 commented on KARAF-5384: --------------------------------------------- The only workaround I see is more documenting and warn users that this refr= esh will happen. I don't see how to avoid this as it doesn't make sense to = ship mina as "core" Karaf dependency. > Optional dependencies in MINA SSHD Core cause system bundle refreshes > --------------------------------------------------------------------- > > Key: KARAF-5384 > URL: https://issues.apache.org/jira/browse/KARAF-5384 > Project: Karaf > Issue Type: Bug > Components: karaf-core > Affects Versions: 4.1.0, 4.1.1, 4.1.2 > Environment: Fedora Linux > Reporter: Seth Leger > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Critical > Fix For: 4.1.4 > > > In similar fashion to KARAF-5251, if you install any feature in Karaf tha= t includes: > - Apache MINA > - bouncycastle > - net.i2p.crypto > it will cause the MINA SSHD Core bundle to refresh, which in turn refresh= es most of the core framework bundles. This has a variety of bad effects in= cluding: > - 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.pro= perties}} without first repackaging Karaf to contain the desired bundles in= the {{/system}} directory. > This also makes testing any Karaf feature that contains MINA, bouncycastl= e, or net.i2p.crypto impossible in Pax Exam (unless you use org.apache.kara= f.features.FeaturesService.Option.NoAutoRefreshBundles or feature:install -= r) because the refresh invalidates @Inject references in your test as the c= ore bundles are refreshed. -- This message was sent by Atlassian JIRA (v6.4.14#64029)