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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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. 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment