Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 84786 invoked from network); 6 Feb 2010 17:05:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Feb 2010 17:05:49 -0000 Received: (qmail 8971 invoked by uid 500); 6 Feb 2010 17:05:49 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 8853 invoked by uid 500); 6 Feb 2010 17:05:49 -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 8843 invoked by uid 99); 6 Feb 2010 17:05:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Feb 2010 17:05:49 +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; Sat, 06 Feb 2010 17:05:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F4015234C4A8 for ; Sat, 6 Feb 2010 09:05:27 -0800 (PST) Message-ID: <1920137095.98051265475927998.JavaMail.jira@brutus.apache.org> Date: Sat, 6 Feb 2010 17:05:27 +0000 (UTC) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (CONFIGURATION-407) HierarchicalINIConfiguration.getSection() is not thread-safe if the global section is requested MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 HierarchicalINIConfiguration.getSection() is not thread-safe if the global section is requested ----------------------------------------------------------------------------------------------- Key: CONFIGURATION-407 URL: https://issues.apache.org/jira/browse/CONFIGURATION-407 Project: Commons Configuration Issue Type: Bug Affects Versions: 1.6 Reporter: Oliver Heger If the global section of a hierarchical INI configuration is requested, a new ViewNode is created which becomes the root node of a new configuration for the global section. Nodes representing properties of the global section are added to this ViewNode. This operation temporarily changes the parent node of these nodes which may cause problems if the method is called by multiple threads concurrently. Because access to a section is a read-only operation, this should be thread-safe. The probability that this error happens is pretty low IMO. Therefore it should be hard to create a unit test. The issue can be fixed by synchronizing the add operation to the ViewNode. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.