Nicolai Ehemann created CONFIGURATION-749:
---------------------------------------------

             Summary: IniConfiguration.getSection() behaves inconsistently 
regarding dot escaping
                 Key: CONFIGURATION-749
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-749
             Project: Commons Configuration
          Issue Type: Bug
          Components: Expression engine
    Affects Versions: 2.5
            Reporter: Nicolai Ehemann


According to documentation, dots in Keys should be escaped by doubling them. 
IniConfiguration.getSection() does not always recognise this correctly: When 
the section already exists, it works as expected. When the section does not 
exist, escaping is ignored, so

getSection("section.with.dots") will create a section called section.with.dots 
(consequently, getSection("section..with..dots") creates a sectoin called 
section..with..dots).

Additionally, the section return by the former call does behave strangely; it 
will only accept one call to addProperty().



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to