Repository navigation
Cherry-pick: Cherry-pick bug fixes to 8.8 (#1557) - #1575
Merged
Merged
Conversation
* MOD-6722 Fix mutation ordering for array commands with recursive paths (#1543) * MOD-7266 make sure to `end()` deserialization, to disallow trailing c… (#1554) * MOD-14664 Json Path evaluation - Allow multi-result nodelists in filt… (#1542) * MOD-14664 Json Path evaluation - Allow multi-result nodelists in filter comparisons, Don't evaluate filters on scalar types * MOD-7264 | MOD-7270 fmt * tests(for coverage) * Revert "tests(for coverage)" This reverts commit b0668a5.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 8.4 #1575 +/- ##
==========================================
- Coverage 77.56% 76.95% -0.62%
==========================================
Files 16 15 -1
Lines 3945 3805 -140
==========================================
- Hits 3060 2928 -132
+ Misses 885 877 -8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
gabsow
approved these changes
Apr 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of 0b3cc6e onto 8.4
Includes:
end()deserialization, to disallow trailing contentConflict resolutions:
json_path/src/json_path.rs: two call-site conflicts resolved by keepingSelf::results_to_term(...)(helper applied cleanly)redis_json/src/ivalue_manager.rs: adapted MOD-7266 to 8.4'sIValue::deserializepattern while addingdeserializer.end()Made with Cursor
Note
Medium Risk
Changes affect JSONPath filter evaluation semantics and the execution order of array-mutation commands across multiple matched paths, which can alter query results and mutation behavior in edge cases. Also tightens JSON parsing by rejecting trailing characters, potentially breaking previously-accepted invalid inputs.
Overview
Improves JSONPath filter evaluation to support multi-result subqueries inside comparisons by introducing
NodeListhandling (ANY-match semantics per RFC 9535) for==, ordering comparisons, and regex=~, instead of treating multi-result terms as invalid.Updates filter application to select nothing on primitive inputs (RFC 9535), and adds/adjusts tests to ensure recursive-descent filtering does not produce duplicate scalar matches.
Fixes array-mutating RedisJSON commands (
JSON.ARRPOP,JSON.ARRTRIM,JSON.ARRINSERT, including legacy variants) to execute mutations in a safe deepest-first / higher-index-first path order while preserving client reply ordering, preventing recursive-path mutations (e.g.$..*) from invalidating later paths.Hardens
JSON.SET/parsing by requiringserde_json::Deserializer::end()to reject trailing characters, with new pytest coverage.Reviewed by Cursor Bugbot for commit ab3e99c. Bugbot is set up for automated code reviews on this repo. Configure here.