felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-611) ConfigurationAdmin.listConfigurations returns empty configurations
Date Wed, 06 Aug 2008 07:44:44 GMT

     [ https://issues.apache.org/jira/browse/FELIX-611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Felix Meschberger resolved FELIX-611.
-------------------------------------

    Resolution: Fixed

Committed the following fixes in Rev. 683144:

(1) Don't return configurations from listConfiguration, which have no properties set (yet).
(2) Return null from listConfiguration instead of empty array in case no applicable configurations
can be found

Deffering closing this issue until deploying a new snapshot

> ConfigurationAdmin.listConfigurations returns empty configurations
> ------------------------------------------------------------------
>
>                 Key: FELIX-611
>                 URL: https://issues.apache.org/jira/browse/FELIX-611
>             Project: Felix
>          Issue Type: Bug
>          Components: Configuration Admin
>    Affects Versions: configadmin-1.0.0, configadmin-1.0.1
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: configadmin-1.0.2
>
>
> The current implementation of the ConfigurationAdmin.listConfigurations method returns
all matching configurations even those with no properties.
> On the other hand the specification of the listConfigurations method states:
>     Only Configuration objects with non- null properties are considered cur-
>     rent. That is, Configuration.getProperties() is guaranteed not to return null
>     for each of the returned Configuration objects.
> Configuration.getProperties() may return null on newly created configuration objects
which never have been updated with actual configuration such as Configuration objects created
upon calling ConfigurationAdmin.getConfiguration(String)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message