Commons Configuration
  1. Commons Configuration
  2. CONFIGURATION-409

Key containing escapedDelimiter does not save() properly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: Expression engine
    • Labels:
      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
      

        Activity

        Hide
        Oliver Heger added a comment -

        Fixed in subversion in revision 919845.

        Show
        Oliver Heger added a comment - Fixed in subversion in revision 919845.
        Hide
        Oliver Heger added a comment -

        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.

        Show
        Oliver Heger added a comment - 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.

          People

          • Assignee:
            Oliver Heger
            Reporter:
            Andrew Cooper
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development