commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CONFIGURATION-409) Key containing escapedDelimiter does not save() properly
Date Mon, 01 Mar 2010 20:56:06 GMT

    [ https://issues.apache.org/jira/browse/CONFIGURATION-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839851#action_12839851
] 

Oliver Heger commented on CONFIGURATION-409:
--------------------------------------------

You are right: this is a bug. Thank you for reporting this. I hope I manage to find some time
in the next days to have a look.

> 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
>
> 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.


Mime
View raw message