Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 40246 invoked from network); 21 Jun 2009 17:38:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jun 2009 17:38:23 -0000 Received: (qmail 77127 invoked by uid 500); 21 Jun 2009 17:38:34 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 77020 invoked by uid 500); 21 Jun 2009 17:38:33 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 77010 invoked by uid 99); 21 Jun 2009 17:38:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Jun 2009 17:38:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Jun 2009 17:38:30 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 71F9D234C04C for ; Sun, 21 Jun 2009 10:38:07 -0700 (PDT) Message-ID: <1144206490.1245605887465.JavaMail.jira@brutus> Date: Sun, 21 Jun 2009 10:38:07 -0700 (PDT) From: "Emmanuel Bourg (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (CONFIGURATION-362) XMLPropertyListConfiguration doesn't handle empty dictionary correctly In-Reply-To: <1421203849.1233617159760.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CONFIGURATION-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Bourg updated CONFIGURATION-362: ----------------------------------------- Summary: XMLPropertyListConfiguration doesn't handle empty dictionary correctly (was: XMLPropertyListConfiguration doesn't handle empty elements correctly) I fixed the issue for the dictionary, there was also a similar issue with the non XML plist configuration. I haven't found an elegant solution to solve the issue with the empty date, the best I could do was to turn it into instead of null. Empty real and integer are just errors, so I'll not change the exception. > XMLPropertyListConfiguration doesn't handle empty dictionary correctly > ---------------------------------------------------------------------- > > Key: CONFIGURATION-362 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-362 > Project: Commons Configuration > Issue Type: Bug > Affects Versions: 1.6 > Environment: Mac OS X 10.5.6 JDK 1.5 > Reporter: Kent McPhee > Assignee: Emmanuel Bourg > Fix For: 1.7 > > > 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). 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 null everywhere an empty dictionary was in the input. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.