You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2010/02/11 08:09:28 UTC

[jira] Commented: (CONFIGURATION-408) When I save a URL as a property value, the forward slashes are getting escaped

    [ https://issues.apache.org/jira/browse/CONFIGURATION-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832403#action_12832403 ] 

Oliver Heger commented on CONFIGURATION-408:
--------------------------------------------

This behavior is caused by a bug in Commons Lang 2.4 which is used behind the scenes: LANG-421.

There are currently some preparations for a 2.5 release of Commons Lang which should also contain a fix for this problem. So chances are good that this issue will be solved soon. You can also try Commons Lang 2.3; this version is not affected by the bug.

> When I save a URL as a property value, the forward slashes are getting escaped
> ------------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-408
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-408
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 1.6
>         Environment: windows xp sp 3 , java 1.6
>            Reporter: Damien Dallimore
>            Priority: Blocker
>
> When I save a URL as a property value, the forward slashes are getting escaped.
> ie: 
> foo = http:\/\/www.google.com\/
> Example Code : 
> public static void main(String[] args)
>   {
>     try
>     {
>       PropertiesConfiguration config = new PropertiesConfiguration();     
>       File newProps = new File("foo.properties");
>       config.setProperty("foo", "http://www.google.com/");     
>       config.save(newProps);
>       
>     }
>     catch (Exception e){}
>   }

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