- Notifications
You must be signed in to change notification settings - Fork 25.5k
Fix msearch request parsing when index expression is null #130776
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
Conversation
Hi @smalyshev, I've created a changelog YAML for you. |
Pinging @elastic/es-core-infra (Team:Core/Infra) |
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
server/src/test/java/org/elasticsearch/action/search/MultiSearchRequestTests.java Outdated Show resolved Hide resolved
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.
Thanks a lot for picking this up! The test needs a small adjustment I believe. No need for another review round once that is addressed.
I am curious to see if this has side effects on other consumers of the method. On the other hand null values cause NPE before so this fix can't hurt.
server/src/test/java/org/elasticsearch/action/search/MultiSearchRequestTests.java Outdated Show resolved Hide resolved
server/src/test/java/org/elasticsearch/action/search/MultiSearchRequestTests.java Outdated Show resolved Hide resolved
…0776) * Fix parsing when index expression is null
…0776) * Fix parsing when index expression is null
…0776) * Fix parsing when index expression is null
…0776) * Fix parsing when index expression is null
…0776) * Fix parsing when index expression is null
…0776) * Fix parsing when index expression is null
…0776) * Fix parsing when index expression is null
Method
XContentMapValues.nodeStringArrayValue
does not check for null before trying to manipulate the value, butnull
is a legit value that can come from JSON, we should check for it.Fixes #129631