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

detect jar hell before installing a plugin #11963

Merged
merged 2 commits into from Jul 1, 2015
Merged

Conversation

rmuir
Copy link
Contributor

@rmuir rmuir commented Jun 30, 2015

Currently ES fails on startup if jar hell is created. But its best to fail earlier, when the user tries to install the plugin, and keep the installation healthy.

Fixes #11946

// before their children (although this makes sense, but is it guaranteed?)
Files.createDirectories(targetFile.getParent());
if (!entry.isDirectory()) {
OutputStream out = Files.newOutputStream(targetFile);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be a try / with to close the output stream?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so much for using @uschindler unzip code :)

Thanks! I will take care of these

@s1monw
Copy link
Contributor

s1monw commented Jun 30, 2015

left some minor comments LGTM otherwise

rmuir added a commit that referenced this pull request Jul 1, 2015
detect jar hell before installing a plugin
@rmuir rmuir merged commit 5294b1a into elastic:master Jul 1, 2015
@clintongormley clintongormley added >enhancement :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts labels Jul 1, 2015
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >enhancement Team:Delivery Meta label for Delivery team v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PluginManager should not install a plugin, if it would create jar hell
4 participants