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

[configuration] clearXmlProperty doesn't remove list properties completely

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • 1.0
    • None
    • None
    • Operating System: All
      Platform: All

    • 30234

    Description

      clearXmlProperty in XMLConfiguration stops on the first element found and
      doesn't examine the whole tree, that means calling clearXmlProperty on a list
      property only remove the first element. For example, given the following
      configuration file:

      <configuration>
      <key>value1</key>
      <key>value2</key>
      </configuration>

      calling conf.clearProperty("key") and saving the configuration will generate the
      following file instead of an empty configuration:

      <configuration>
      <key>value2</key>
      </configuration>

      Attachments

        Activity

          People

            Unassigned Unassigned
            ebourg Emmanuel Bourg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: