Skip to content

Conversation

sothawo
Copy link
Collaborator

@sothawo sothawo commented Sep 3, 2022

Closes #2287

@sothawo sothawo merged commit 988736d into spring-projects:4.4.x Sep 3, 2022
sothawo added a commit that referenced this pull request Sep 3, 2022
…4.x).

Original Pull Request #2288
Closes #2287

(cherry picked from commit 988736d)
@sothawo sothawo deleted the #2287-fix-requestfactrory-npe branch September 3, 2022 08:20
@37176427
Copy link

37176427 commented Apr 25, 2023

I found the same problem in the updateByQuery:
version:4.4.10

code:

UpdateQuery updateQuery = UpdateQuery.builder(query).withScriptedUpsert(true).withScriptType(ScriptType.INLINE).withScript(script).build();
//not set lang,trigger npe
            elasticsearchRestTemplate.updateByQuery(updateQuery, index);

requestFactory.updateByQueryRequest(query, index);

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

Successfully merging this pull request may close these issues.

Fix NPE in RequestFactory when language in UpdateQuery is not set (4.4.x).
2 participants