Skip to content

Strengthen elasticsearch plugin version check#85340

Merged
grcevski merged 5 commits intoelastic:masterfrom
grcevski:fix/plugin_version_read
Mar 28, 2022
Merged

Strengthen elasticsearch plugin version check#85340
grcevski merged 5 commits intoelastic:masterfrom
grcevski:fix/plugin_version_read

Conversation

@grcevski
Copy link
Copy Markdown
Contributor

When a plugin specifies an elasticsearch version with an empty string
in their plugin-descriptor.properties file, we don't enforce the
version check. This PR ensures that we check the version string for
empty as well as null value.

Closes #85336

When a plugin specifies an elasticsearch version with an empty string
in their plugin-descriptor.properties file, we don't enforce the
version check. This PR ensures that we check the version string for
empty as well as null value.
@grcevski grcevski added >bug :Core/Infra/Plugins Plugin API and infrastructure Team:Core/Infra Meta label for core/infra team v8.2.0 labels Mar 24, 2022
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @grcevski, I've created a changelog YAML for you.

Copy link
Copy Markdown
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

"version",
"1.0",
"elasticsearch.version",
""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since we are using the Strings util, should we test for non zero length but still empty?

@grcevski grcevski merged commit 62448a0 into elastic:master Mar 28, 2022
@grcevski grcevski deleted the fix/plugin_version_read branch March 28, 2022 18:27
rjernst pushed a commit to rjernst/elasticsearch that referenced this pull request Mar 28, 2022
When a plugin specifies an elasticsearch version with an empty string
in their plugin-descriptor.properties file, we don't enforce the
version check. This PR ensures that we check the version string for
empty as well as null value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Core/Infra/Plugins Plugin API and infrastructure Team:Core/Infra Meta label for core/infra team v8.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check for empty version while verifying Elasticsearch plugins

4 participants