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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2
    • None
    • Collection
    • 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. fix.patch
          0.7 kB
          Alexander Borovsky
        2. COLLECTIONS-271.patch
          1 kB
          Henri Yandell
        3. COLLECTIONS-271.patch
          2 kB
          Nathan Bubna

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: