Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22C351921E for ; Sat, 16 Apr 2016 15:03:26 +0000 (UTC) Received: (qmail 18945 invoked by uid 500); 16 Apr 2016 15:03:26 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 18846 invoked by uid 500); 16 Apr 2016 15:03:25 -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 18835 invoked by uid 99); 16 Apr 2016 15:03:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2016 15:03:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8B58A2C1F56 for ; Sat, 16 Apr 2016 15:03:25 +0000 (UTC) Date: Sat, 16 Apr 2016 15:03:25 +0000 (UTC) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CONFIGURATION-622) Writing INI file, keys with . become .. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CONFIGURATION-622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oliver Heger resolved CONFIGURATION-622. ---------------------------------------- Resolution: Fixed The problem was in INIConfiguration.write(). Here keys that might have been escaped were written to disk. The write() method has been rewritten to operate on configuration nodes directly. These nodes have the correct names. Fixed in SVN in revision 1739472. > Writing INI file, keys with . become .. > --------------------------------------- > > Key: CONFIGURATION-622 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-622 > Project: Commons Configuration > Issue Type: Bug > Components: Format > Affects Versions: 2.0 > Reporter: Simon Bin > > Here is sample input config: > [learningtask] > trains.lp = 5 > after new INIConfiguration(conf).write() it becomes: > [learningtask] > trains..lp = 5 > seems related to the escaping of keys in the ExpressionEngine -- This message was sent by Atlassian JIRA (v6.3.4#6332)