Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-179

FilteringUtils.escapeWindowsPath only works if the Windows path is at the beginning of a property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • maven-filtering-1.0-beta-4
    • maven-filtering-1.0
    • maven-filtering
    • None

    Description

      If the Windows path is in the middle, like in a JDBC URL escaping is not done. Here's the code from FilteringUtils.java that causes it:

          public static final String escapeWindowsPath( String val )
          {
              if ( !StringUtils.isEmpty( val ) && val.indexOf( ":\\" ) == 1 )
              ...
      

      Attachments

        1. MSHARED-179.patch
          1 kB
          dennislundberg
        2. MSHARED-179.zip
          1 kB
          dennislundberg

        Issue Links

          Activity

            People

              dennisl@apache.org Dennis Lundberg
              dennisl@apache.org Dennis Lundberg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: