You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Damien Dallimore (JIRA)" <ji...@apache.org> on 2010/02/11 02:02:29 UTC
[jira] Created: (CONFIGURATION-408) When I save a URL as a property
value, the forward slashes are getting escaped
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.
[jira] Commented: (CONFIGURATION-408) When I save a URL as a
property value, the forward slashes are getting escaped
Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (CONFIGURATION-408) When I save a URL as a
property value, the forward slashes are getting escaped
Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CONFIGURATION-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Heger resolved CONFIGURATION-408.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.7
The dependency to commons-lang was changed to the new version 2.5. I also added a unit test to verify that the problem is actually solved.
> 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
> Assignee: Oliver Heger
> Priority: Blocker
> Fix For: 1.7
>
>
> 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.