You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2010/03/06 21:48:27 UTC

[jira] Resolved: (CONFIGURATION-409) Key containing escapedDelimiter does not save() properly

     [ https://issues.apache.org/jira/browse/CONFIGURATION-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Heger resolved CONFIGURATION-409.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7

Fixed in subversion in revision 919845.

> Key containing escapedDelimiter does not save() properly
> --------------------------------------------------------
>
>                 Key: CONFIGURATION-409
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-409
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Expression engine
>    Affects Versions: 1.6
>            Reporter: Andrew Cooper
>            Assignee: Oliver Heger
>             Fix For: 1.7
>
>
> It seems that a key containing the escapedDelimiter is stored without the delimiter and the escape is not recreated when saving the configuration. 
> ----
> {code:title=test.java}
> HierarchicalINIConfiguration inicfg = new HierarchicalINIConfiguration();
> inicfg.setProperty( "Andrew L.. Cooper.first", "Andrew" );
> inicfg.setProperty( "Andrew L.. Cooper.last", "Cooper" );
> inicfg.setProperty( "Andrew L.. Cooper.mail", "andrew.cooper@example.com" );
> inicfg.save( System.out );
> System.out.println( inicfg.get( "Andrew L..Cooper.mail" );
> {code}
> {code:title=Expected Output}
> [Andrew L. Cooper]
> first = Andrew
> last = Cooper
> mail = andrew.cooper@example.com
> andrew.cooper@example.com
> {code}
> {code:title=Actual Output}
> [Andrew L. Cooper]
> andrew.cooper@example.com
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.