Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC61FD5BA for ; Fri, 23 Nov 2012 06:55:25 +0000 (UTC) Received: (qmail 96629 invoked by uid 500); 23 Nov 2012 06:55:13 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 96573 invoked by uid 500); 23 Nov 2012 06:55:12 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 96537 invoked by uid 99); 23 Nov 2012 06:55:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Nov 2012 06:55:12 +0000 Date: Fri, 23 Nov 2012 06:55:12 +0000 (UTC) From: "Felix Meschberger (JIRA)" To: dev@felix.apache.org Message-ID: <733746002.18616.1353653712943.JavaMail.jiratomcat@arcas> In-Reply-To: <2081056509.7159.1310039416587.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (FELIX-3028) Better handle configuration unbinding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-3028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger closed FELIX-3028. ------------------------------------ Close after release > Better handle configuration unbinding > ------------------------------------- > > Key: FELIX-3028 > URL: https://issues.apache.org/jira/browse/FELIX-3028 > Project: Felix > Issue Type: Bug > Components: Web Console > Affects Versions: webconsole-3.1.8 > Reporter: Felix Meschberger > Assignee: Felix Meschberger > Fix For: webconsole-4.0.0 > > > Unbinding of configuration in the ConfigManager class of the Web Console has some issues: > (1) If not configuration exists for a provided PID when unbinding is requested, a NullPointerException is thrown because the config variable is not null-checked > (2) Apache Felix Configuration Admin 1.2.8 sets and persists the static bundle location with the Configuration.setBundleLocation call. On the other hand internally a dynamic location is maintained if configuration is assigned to a ManagedService[Factory]. If the static location is cleared, the dynamic location is still set and calling Configuration.getBundleLocation still returns that dynamically assigned value. With a work around we can force the dynamic bundle location to also be cleared: If the bundle location is not null after setBundleLocation(null), we do setBundleLocation(non-null); setBundleLocation(null). The first call clears the dynamic bundle location while setting the static location to some non-null value. The second call then resets the static location back to null. > This second issue will probably be solved once the R4.3 Configuration Admin specification is publiziced and implemented, which handles bundle location setup in a more controlled manner. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira