Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-408

When I save a URL as a property value, the forward slashes are getting escaped

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: Build
    • Labels:
      None
    • Environment:

      windows xp sp 3 , java 1.6

      Description

      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){}

      }

        Attachments

          Activity

            People

            • Assignee:
              oheger Oliver Heger
              Reporter:
              damiendallimore Damien Dallimore
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: