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 inside a jar can fail #2967

Closed
mkristian opened this issue May 21, 2015 · 0 comments
Closed

File.expand_path inside a jar can fail #2967

mkristian opened this issue May 21, 2015 · 0 comments
Assignees
Milestone

Comments

@mkristian
Copy link
Member

@mkristian mkristian commented May 21, 2015

script
└── rails

where rails script does something like File.expand_path('../../config/application', __FILE__) which produces

/home/christian/uri:classloader:/config/application

instead of

uri:classloader:/config/application

not going over the root "uri:classloader:/" works, like File.expand_path('../config/application', __FILE__) gives 'uri:classloader:/script/config/application' as expected.

loading the script/rails with classpath:script/rails is even more messed up:
/home/christian/uri:classloader:/classpath:script/config/application

@mkristian mkristian self-assigned this May 21, 2015
headius added a commit that referenced this issue May 21, 2015
mkristian added a commit that referenced this issue Jun 19, 2015
Sponsored by Lookout Inc.
@mkristian mkristian closed this Jun 19, 2015
@mkristian mkristian added this to the JRuby 1.7.21 milestone Jun 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.