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

elasticsearch.in.sh unintentionally adds CWD to classpath #12000

Closed
rmuir opened this issue Jul 2, 2015 · 1 comment
Closed

elasticsearch.in.sh unintentionally adds CWD to classpath #12000

rmuir opened this issue Jul 2, 2015 · 1 comment

Comments

@rmuir
Copy link
Contributor

rmuir commented Jul 2, 2015

it does this like so:

ES_CLASSPATH="$ES_CLASSPATH:..."

When ES_CLASSPATH is empty we get a classpath like this:

:/wherever.jar:/whatever.jar

The empty path element gets interpreted as CWD.

I did fgrep -r ES_CLASSPATH and saw lots of logic in various packaging scripts, etc. We need to review how these scripts set the classpath and make sure they do not do this.

@rmuir
Copy link
Contributor Author

rmuir commented Jul 2, 2015

Easy to reproduce, cd /, then run /path/to/bin/elasticsearch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant