Skip to content

Don't double-slash path elements when canonicalizing#6239

Merged
headius merged 6 commits intojruby:masterfrom
headius:no_double_slashy
May 23, 2020
Merged

Don't double-slash path elements when canonicalizing#6239
headius merged 6 commits intojruby:masterfrom
headius:no_double_slashy

Conversation

@headius
Copy link
Member

@headius headius commented May 22, 2020

Fixes #6045

@headius headius added this to the JRuby 9.3.0.0 milestone May 22, 2020
Not sure why this is here, but there's no case where a classloader
URI should have anything like a UNC double-slashed path.
@headius
Copy link
Member Author

headius commented May 23, 2020

This fix seems right, but there's a number of our own tests that expect the double slash in a classloader URI. I believe these are in error and we should always normalize to single slashes when canonicalizing a classloader URI path.

@headius
Copy link
Member Author

headius commented May 23, 2020

See also #3150 that added at least one of these tests.

@headius headius merged commit 00f5b3b into jruby:master May 23, 2020
@headius headius deleted the no_double_slashy branch May 23, 2020 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bundler incorrect path resolution handling classloader URI

1 participant