-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Conversation
Hello, is there ETA for fix of this issue? |
|
||
@Test | ||
public void testPreserveSettingsClassloader() { | ||
final ClassLoader classLoader = new URLClassLoader(new URL[] {}); |
There was a problem hiding this comment.
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.
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
c461eba
to
8472775
Compare
Copy the classloader from the original settings when checking for prompts
Could you please tell when release with fix of this bug will be built? |
@lytvynenkoinvest We try to release regularly and the fix will be released with our next bug fix release, 1.7.1. |
Are there expectations about the date of the next release? |
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