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

[configuration] clearXmlProperty doesn't remove list properties completely

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: 1.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: