Maven Shared Components
  1. Maven Shared Components
  2. MSHARED-121

FilteringUtils.escapeWindowsPath doesn't handle paths that leave out the drive letter.

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: maven-filtering-1.0-beta-3
    • Fix Version/s: None
    • Component/s: maven-filtering
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      2

      Description

      FilteringUtils.escapeWindowsPath requires a drive letter to be present in the path, or at least the string

      ":\\"

      to be present in order to trigger escaping the value as a windows path.

      In cases where the path is an absolute reference to a file on the current drive (no drive letter is included), or when the path starts with an unresolved expression (in cases where n+1 level interpolation will eventually resolve the expression), escaping doesn't happen at all.

        Issue Links

          Activity

          John Casey made changes -
          Field Original Value New Value
          Description FilteringUtils.escapeWindowsPath requires a drive letter to be present in the path, or at least the string ":\\" to be present in order to trigger escaping the value as a windows path.

          In cases where the path is an absolute reference to a file on the current drive (no drive letter is included), or when the path starts with an unresolved expression (in cases where n+1 level interpolation will eventually resolve the expression), escaping doesn't happen at all.
          FilteringUtils.escapeWindowsPath requires a drive letter to be present in the path, or at least the string <pre>":\\"</pre> to be present in order to trigger escaping the value as a windows path.

          In cases where the path is an absolute reference to a file on the current drive (no drive letter is included), or when the path starts with an unresolved expression (in cases where n+1 level interpolation will eventually resolve the expression), escaping doesn't happen at all.
          John Casey made changes -
          Description FilteringUtils.escapeWindowsPath requires a drive letter to be present in the path, or at least the string <pre>":\\"</pre> to be present in order to trigger escaping the value as a windows path.

          In cases where the path is an absolute reference to a file on the current drive (no drive letter is included), or when the path starts with an unresolved expression (in cases where n+1 level interpolation will eventually resolve the expression), escaping doesn't happen at all.
          FilteringUtils.escapeWindowsPath requires a drive letter to be present in the path, or at least the string {noformat}":\\"{noformat} to be present in order to trigger escaping the value as a windows path.

          In cases where the path is an absolute reference to a file on the current drive (no drive letter is included), or when the path starts with an unresolved expression (in cases where n+1 level interpolation will eventually resolve the expression), escaping doesn't happen at all.
          John Casey made changes -
          John Casey made changes -
          Fix Version/s maven-filtering-1.0-beta-3 [ 14631 ]
          John Casey made changes -
          Fix Version/s maven-filtering-1.0-beta-3 [ 14631 ]
          Fix Version/s maven-filtering-1.0-beta-4 [ 14861 ]
          Benjamin Bentmann made changes -
          Fix Version/s maven-filtering-1.0-beta-4 [ 14861 ]
          Dennis Lundberg made changes -
          Link This issue is related to MSHARED-179 [ MSHARED-179 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              John Casey
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: