Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-271

org.apache.commons.collections.ExtendedProperties#combine don't import string properly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: None
    • Component/s: Collection
    • Labels:
      None

      Description

      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!

        Attachments

        1. COLLECTIONS-271.patch
          2 kB
          Nathan Bubna
        2. COLLECTIONS-271.patch
          1 kB
          Henri Yandell
        3. fix.patch
          0.7 kB
          Alexander Borovsky

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                partizan Alexander Borovsky
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: