Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-749

IniConfiguration.getSection() behaves inconsistently regarding dot escaping

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5
    • None
    • Expression engine
    • None

    Description

      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().

      Attachments

        Activity

          People

            Unassigned Unassigned
            McNetic Nicolai Ehemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: