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

XMLPropertyListConfiguration doesn't handle empty dictionary correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: None
    • Labels:
      None
    • Environment:

      Mac OS X 10.5.6 JDK 1.5

      Description

      Empty "dict" elements are not handled properly. During printing of a configuration, configuration nodes that have no children and no value are assumed to be "strings" (see XMLPropertyListConfiguration.java:printValue()'s last "else" clause). <dict/> is parsed in such a way (see startElement() and endElement() of that same file) that it ends up creating a configuration node with no children and no value. Thus printing out a parsed property list will print <string>null</string> everywhere an empty dictionary was in the input.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: