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

Copy the classloader from the original settings when checking for prompts #12419

Merged
merged 1 commit into from
Jul 23, 2015

Conversation

jaymode
Copy link
Member

@jaymode jaymode commented Jul 23, 2015

Today, when a user provides settings and specifies a classloader to be used, the classloader gets
dropped when we copy the settings to check for prompt entries. This change copies the classloader
when replacing the prompt placeholders and adds a test to ensure the InternalSettingsPreparer
always retains the classloader.

Closes #12340

@clintongormley clintongormley changed the title copy the classloader from the original settings when checking for pro… Copy the classloader from the original settings when checking for prompts Jul 23, 2015
@lytvynenkoinvest
Copy link

Hello, is there ETA for fix of this issue?


@Test
public void testPreserveSettingsClassloader() {
final ClassLoader classLoader = new URLClassLoader(new URL[] {});
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use URLClassLoader.newInstance() instead? It doesn't require a createClassLoader permissions check i think, because the returned subclass is controlled and does proper security checks.

@rmuir
Copy link
Contributor

rmuir commented Jul 23, 2015

Looks good to me. just one note

…mpts

Today, when a user provides settings and specifies a classloader to be used, the classloader gets
dropped when we copy the settings to check for prompt entries. This change copies the classloader
when replacing the prompt placeholders and adds a test to ensure the InternalSettingsPreparer
always retains the classloader.

Closes elastic#12340
jaymode added a commit that referenced this pull request Jul 23, 2015
Copy the classloader from the original settings when checking for prompts
@jaymode jaymode merged commit f8d9de8 into elastic:master Jul 23, 2015
@jaymode jaymode removed the review label Jul 23, 2015
@lytvynenkoinvest
Copy link

Could you please tell when release with fix of this bug will be built?

@jaymode
Copy link
Member Author

jaymode commented Jul 23, 2015

@lytvynenkoinvest We try to release regularly and the fix will be released with our next bug fix release, 1.7.1.

@jaymode jaymode deleted the fix_settings_classloader branch July 23, 2015 19:00
@lytvynenkoinvest
Copy link

Are there expectations about the date of the next release?

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

Successfully merging this pull request may close these issues.

3 participants