Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-409

Key containing escapedDelimiter does not save() properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6
    • 1.7
    • Expression engine
    • None

    Description

      It seems that a key containing the escapedDelimiter is stored without the delimiter and the escape is not recreated when saving the configuration.


      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" );
      
      Expected Output
      [Andrew L. Cooper]
      first = Andrew
      last = Cooper
      mail = andrew.cooper@example.com
      
      andrew.cooper@example.com
      
      Actual Output
      [Andrew L. Cooper]
      
      andrew.cooper@example.com
      

      Attachments

        Activity

          People

            oheger Oliver Heger
            andrew.cooper@hkcreations.org Andrew Cooper
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: