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

PropertiesConfiguration.save() does not support escaping the escape character

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      None

      Description

      When a new property is added to a PropertiesConfiguration, it is possible to escape the escaping character for list delimiters, e.g.

      conf.addProperty("test.dirs", "C:\\Temp\\\\,D:\\Data
      ");

      Here the Backslash after Temp must be escaped, otherwise the list delimiter won't be recognized. This works, but when the configuration is saved and loaded again, the backslash that escapes the escape character is dropped. The property is then treated as a single value property with an escaped list delimiter.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: