Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File.expand_path( 'asd', Pathname.new('uri:classloader:/') produces corrupted result #3150

Closed
mkristian opened this Issue Jul 17, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@mkristian
Copy link
Member

mkristian commented Jul 17, 2015

$ bin/jruby -rpathname -e "p File.expand_path 'asd', Pathname.new('uri:classloader:/')" 
"/home/christian/projects/active/jruby/jruby/uri:classloader:/asd"

expected result: uri:classloader://asd like from File.expand_path('asd', 'uri:classloader:/')

@mkristian mkristian added the core label Jul 17, 2015

@mkristian mkristian self-assigned this Jul 17, 2015

@mkristian mkristian added this to the JRuby 1.7.22 milestone Jul 17, 2015

mkristian added a commit that referenced this issue Jul 24, 2015

detect uri-like paths better for File.expand_path
whether second argument of File.expand_path('foo', Pathname.new('uri:classloader:/'))
is ruby string or pathname, the result should be the same.

fixes #3150

Sponsored by Lookout Inc.

@mkristian mkristian closed this Jul 24, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.