Details
-
Type:
Bug
-
Status:
Open
-
Priority:
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 :
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
- is related to
-
MSHARED-179
FilteringUtils.escapeWindowsPath only works if the Windows path is at the beginning of a property
-
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 -
| Attachment | 0001-MSHARED-121-Don-t-require-a-drive-letter-to-escape-a.patch [ 43885 ] |
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 |
a patch containing the unit tests for three use cases: complete absolute windows path, windows path absolute from current drive, and windows path starting with an unresolved expression. Also contains a simplistic solution to assume anything with a backslash is a windows path. I'm fairly certain we'll want something more fine-grained than this, but not sure how to address it yet.