Eric Lessard created FELIX-5092:
-----------------------------------

             Summary: CaseInsensitiveDictionary handling of empty collection is 
inconsistent
                 Key: FELIX-5092
                 URL: https://issues.apache.org/jira/browse/FELIX-5092
             Project: Felix
          Issue Type: Bug
    Affects Versions: configadmin-1.8.8
            Reporter: Eric Lessard


The current implementation of {{CaseInsensitiveDictionary.checkValue()}} throws 
an exception when a value is set to an empty collection but accepts empty 
arrays. This behavior is inconsistent and requires the code that deals with 
{{Configuration}} properties to behave differently when setting or getting 
attributes with a cardinality based on whether the cardinality is positive or 
negative.

This topic has already been discussed in the mailing lists and no reason could 
be found for this difference in behavior 
(http://www.mail-archive.com/dev%40felix.apache.org/msg33878.html) so it'd be 
nice to make this consistent and allow empty collections.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to