[plugin cli] Fix file:/// paths on Windows#10083
Conversation
856fa90 to
0489287
Compare
|
jenkins, test this |
|
By "break file:// paths", do you mean that using 2 slashes on windows will no longer work? |
|
Yeah. I can make the regex more specific to only remove the leading / if it's followed by a drive letter if we want to keep supporting file://. |
|
We probably should preserve the existing functionality for 5.x and remove the support for |
|
@jbudz I think it is not strict, must check string format,like follow : |
|
I haven't tested this PR, but just wondering if we can just add a catch that does the path slash manipulation only if the file is not found? |
|
@LeeDr When would a file be found on windows using 3 slashes? |
|
@epixa I was suggesting that if the user gives this incorrect syntax for Windows
And if the user gives this correct syntax for Windows
|
934ac50 to
d798c0f
Compare
d798c0f to
051fcb1
Compare
tylersmalley
left a comment
There was a problem hiding this comment.
LGTM - verified I am getting the deprecation warning for file://
|
LGTM -- tested on Windows |
Backports PR #10083 **Commit 1:** [plugin cli] Fix file:/// paths on Windows * Original sha: f47bc1e * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-01-26T17:02:24Z **Commit 2:** [plugin cli] Stricter path checking, keeps support for file:// * Original sha: 6bb8801 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-01-27T16:04:38Z **Commit 3:** [plugin cli] Add deprecation warning for file:// * Original sha: 051fcb1 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-02-14T19:49:19Z
Backports PR #10083 **Commit 1:** [plugin cli] Fix file:/// paths on Windows * Original sha: f47bc1e * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-01-26T17:02:24Z **Commit 2:** [plugin cli] Stricter path checking, keeps support for file:// * Original sha: 6bb8801 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-01-27T16:04:38Z **Commit 3:** [plugin cli] Add deprecation warning for file:// * Original sha: 051fcb1 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-02-14T19:49:19Z
Backports PR #10083 **Commit 1:** [plugin cli] Fix file:/// paths on Windows * Original sha: f47bc1e * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-01-26T17:02:24Z **Commit 2:** [plugin cli] Stricter path checking, keeps support for file:// * Original sha: 6bb8801 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-01-27T16:04:38Z **Commit 3:** [plugin cli] Add deprecation warning for file:// * Original sha: 051fcb1 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-02-14T19:49:19Z
Backports PR #10083 **Commit 1:** [plugin cli] Fix file:/// paths on Windows * Original sha: f47bc1e * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-01-26T17:02:24Z **Commit 2:** [plugin cli] Stricter path checking, keeps support for file:// * Original sha: 6bb8801 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-01-27T16:04:38Z **Commit 3:** [plugin cli] Add deprecation warning for file:// * Original sha: 051fcb1 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-02-14T19:49:19Z
Backports PR #10083 **Commit 1:** [plugin cli] Fix file:/// paths on Windows * Original sha: f47bc1e * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-01-26T17:02:24Z **Commit 2:** [plugin cli] Stricter path checking, keeps support for file:// * Original sha: 6bb8801 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-01-27T16:04:38Z **Commit 3:** [plugin cli] Add deprecation warning for file:// * Original sha: 051fcb1 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-02-14T19:49:19Z
Parsing an absolute file path using file:/// on Windows keeps the leading slash and causes the path to not resolve correctly. This also adds a deprecation warning for paths on Windows with two slashes.
Closes #9301
Closes #8933
Closes #7133