You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2007/05/24 22:40:16 UTC

[jira] Created: (CONFIGURATION-274) PropertiesConfiguration.save() does not support escaping the escape character

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

                 Key: CONFIGURATION-274
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-274
             Project: Commons Configuration
          Issue Type: Bug
    Affects Versions: 1.4
            Reporter: Oliver Heger
         Assigned To: Oliver Heger
            Priority: Minor
             Fix For: 1.5


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Resolved: (CONFIGURATION-274) PropertiesConfiguration.save() does not support escaping the escape character

Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CONFIGURATION-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Heger resolved CONFIGURATION-274.
----------------------------------------

    Resolution: Fixed

A fix has been committed.

> PropertiesConfiguration.save() does not support escaping the escape character
> -----------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-274
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-274
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Oliver Heger
>         Assigned To: Oliver Heger
>            Priority: Minor
>             Fix For: 1.5
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org