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

MultiDelimiterInterpolatorFilterReaderLineEnding() does not filter after a token is escaped

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • maven-filtering-1.0
    • maven-filtering-1.1
    • maven-filtering
    • None
    • java version "1.6.0_33"
      Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-10M3720)
      Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)

    Description

      When an attempt is made to filter the following string:

      export SERVER_ENV=\${SERVER_ENV:${httpd.server.env}}

      The escape character "\" ends up escaping the entire token, or failing that the entire line, and the filter "${httpd.server.env}" is unresolved.

      Expected:

      export SERVER_ENV=${SERVER_ENV:sandbox}

      Actual:

      export SERVER_ENV=${SERVER_ENV:${httpd.server.env}}

      Patch to follow.

      Attachments

        1. maven-filtering-MSHARED-228.patch
          37 kB
          Graham Leggett

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              minfrin Graham Leggett
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: