-
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
Security checks fail for ESSingleNodeTestCase on external plugin with IntelliJ #33045
Labels
Comments
Pinging @elastic/es-core-infra |
I think this might be the way to go:
|
Thanks for the report @mattweber. I will take a look at this in the next few days. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I get errors when running
ESSingleNodeTestCase
tests via IntelliJ while developing an external plugin. Tracked this down to the forced insertion ofelasticsearch-secure-sm
.The problem is that when we are using an external plugin it is already on the classpath with version and jar in the filename, ie.
elasticsearch-secure-sm-6.3.2.jar
so when we do the alias and previous value check in Security we get the duplicate and thus anIllegalStateException
. We completely miss the duplication check that already exists when force addingelasticsearch-secure-sm
due to this.Not sure what the best way to fix this is:
Do we check if the previous value is not null AND not equal to the value we want to set here.
Maybe make getCodebaseJarMap calculate the alias and use it as the map key?
Something else?
I can work on the PR once I know how you would like me to proceed.
The text was updated successfully, but these errors were encountered: