[
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", "[email protected]" );
> 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 = [email protected]
> [email protected]
> {code}
> {code:title=Actual Output}
> [Andrew L. Cooper]
> [email protected]
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.