You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Avoid infinite loop in flat_object parsing
We had logic in flat_object parsing that would:
1. Try parsing a flat object field that is not an object or null.
2. Would see an END_ARRAY token, ignore it, and not advance the parser.
Combined, this would create a scenario where passing an array of
strings for a flat_object would parse the string values, then loop
infinitely on the END_ARRAY token.
Signed-off-by: Michael Froh <[email protected]>
* Remove some unused code and add more tests
The removed code does not actually seem to affect the logic. Also, I
want to be 100% sure that every call to parseToken is guaranteed to
call parser.nextToken() at some point.
Signed-off-by: Michael Froh <[email protected]>
* Remove unused parameter from parseToken
Thanks for the reminder, @kkewwei!
Signed-off-by: Michael Froh <[email protected]>
* Add skip for newly-added test
The test fails on MixedClusterClientYamlTestSuiteIT because 2.x still
has the infinite loop until backport.
Signed-off-by: Michael Froh <[email protected]>
---------
Signed-off-by: Michael Froh <[email protected]>
(cherry picked from commit 05dab3b)
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
32
32
### Fixed
33
33
- Fix wildcard query containing escaped character ([#15737](https://github.com/opensearch-project/OpenSearch/pull/15737))
34
34
- Add validation for the search backpressure cancellation settings ([#15501](https://github.com/opensearch-project/OpenSearch/pull/15501))
35
+
- Avoid infinite loop when `flat_object` field contains invalid token ([#15985](https://github.com/opensearch-project/OpenSearch/pull/15985))
0 commit comments