commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Borovsky (JIRA)" <j...@apache.org>
Subject [jira] Created: (COLLECTIONS-271) org.apache.commons.collections.ExtendedProperties#combine don't import string properly
Date Tue, 16 Oct 2007 12:41:50 GMT
org.apache.commons.collections.ExtendedProperties#combine don't import string properly
--------------------------------------------------------------------------------------

                 Key: COLLECTIONS-271
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-271
             Project: Commons Collections
          Issue Type: Bug
          Components: Collection
    Affects Versions: 3.2
            Reporter: Alexander Borovsky


When we set property with escaped characters, after combine propertySets we got them unescaped.

Simple Example

ExtendedProperties props = new ExtendedProperties();
props.setProperty("test", "\\\\\\\\192.168.1.91\\\\test");
props.getProperty("test"); // => \\192.168.1.91\test

ExtendedProperties props2 = new ExtendedProperties();
props2.combine(props);
props.getProperty("test"); // => \192.168.1.91\test -- Wrong!

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


Mime
View raw message