Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 60421 invoked from network); 2 Nov 2006 21:28:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2006 21:28:42 -0000 Received: (qmail 81763 invoked by uid 500); 2 Nov 2006 21:28:53 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 81227 invoked by uid 500); 2 Nov 2006 21:28:51 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 81211 invoked by uid 99); 2 Nov 2006 21:28:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 13:28:51 -0800 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=INFO_TLD X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 13:28:39 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 225247141B8 for ; Thu, 2 Nov 2006 13:28:19 -0800 (PST) Message-ID: <22706531.1162502899137.JavaMail.root@brutus> Date: Thu, 2 Nov 2006 13:28:19 -0800 (PST) From: "Oliver Heger (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Resolved: (CONFIGURATION-229) config : load for a configuration node is called before parsing is complete : attributes ignored In-Reply-To: <32578278.1159887199563.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/CONFIGURATION-229?page=3Dall ] Oliver Heger resolved CONFIGURATION-229. ---------------------------------------- Fix Version/s: Nightly Builds Resolution: Fixed A fix was committed that causes the load() method to be invoked after initi= alization of all specified properties is completed. This should solve this = problem. Please double-check. Thanks! > config : load for a configuration node is called before parsing is comple= te : attributes ignored > -------------------------------------------------------------------------= ----------------------- > > Key: CONFIGURATION-229 > URL: http://issues.apache.org/jira/browse/CONFIGURATION-2= 29 > Project: Commons Configuration > Issue Type: Bug > Affects Versions: 1.3 Final > Reporter: Andre Doherty > Assigned To: Oliver Heger > Priority: Minor > Fix For: Nightly Builds > > > Hi there > i have noticed the following issue which appears to be a bug. (Tested on = 1.3 however the version doesn't appear above) > createObject from FileConfigurationFactory(DigesterConfigurationFactory) = set fileName and fires load of properties :=20 > public Object createObject(Attributes attributes) throws Exception > { > FileConfiguration conf =3D createConfiguration(attributes); > conf.setBasePath(getBasePath()); > conf.setFileName(attributes.getValue(ATTR_FILENAME)); > try > { > log.info("Trying to load configuration " + conf.getFileNa= me()); > conf.load(); > } > However digester invokes createObject when the object is instancied and b= efore setting any attributes.=20 > All other attributes beside fileName and basePath are not read in time an= d therefore are ignored during load. > I guess load should be called when node initialization is complete, possi= bly using a proper digester rule.=20 > Regards, > andr=C3=A9 --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org