Repository navigation
Cherry-pick: Cherry-pick bug fixes to 8.8 (#1557) - #1580
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.
…one(), fix error type annotation Made-with: Cursor
…mmar The 2.4 jsonpath grammar predates null literal support in filter expressions, causing QueryCompilationError for "$[?(@==null)]". Made-with: Cursor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 51abb4f. Configure here.
…ashing tests - Apply compare_paths_for_mutation to src/commands.rs (arr_insert/pop/trim impl and legacy functions) — the mutation ordering fix was never ported to 2.4's src/commands.rs during the initial cherry-pick - Force rebuild exposed stale binary for MOD-7266 (deserializer.end()); the fix was already in src/ivalue_manager.rs but the old .dylib predated it - Add test for trailing-char rejection in ivalue_manager unit tests - Remove test_recursive_descent: JSON.SET with $..* wildcard crashes 2.4's server (pre-existing bug unrelated to this cherry-pick) Made-with: Cursor
…ars (MOD-7266) Made-with: Cursor
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 2.4
Includes:
end()deserialization, to disallow trailing contentConflict resolutions (2.4 has significantly diverged structure):
src/jsonpath/json_path.rs(old path — 2.4 predates thejson_path/crate extraction):NullandNodeListvariants toTermEvaluationResultenumord_cmp_matcheshelper + refactoredge/lt/leto use it (adaptedNotComparable→NotCmparablefor 2.4's existing typo inCmpResult)results_to_termhelper + updated call siteselse ifbranch (RFC 9535)src/jsonpath/mod.rs: addedtest_filter_nulltestsrc/ivalue_manager.rs(old path): applied MOD-7266deserializer.end()fix here (instead ofredis_json/src/ivalue_manager.rswhich doesn't exist in 2.4)redis_json/src/commands.rs: auto-merged cleanly (MOD-6722 applied without conflicts)tests/pytest/test.py: kept 2.4-specific RDB test content; addedtest_json_set_rejects_trailing_characters(MOD-7266) andtest_recursive_descent; skippedtest_mset_replication_in_aof(JSON.MSET not in 2.4)Made with Cursor
Note
Medium Risk
Touches JSON mutation and JSONPath filter evaluation semantics, so behavior can change for existing queries and recursive array updates; also tightens
JSON.SETparsing to reject previously-accepted trailing characters.Overview
Fixes in-place mutation ordering for array-mutating commands (
JSON.ARRPOP,JSON.ARRTRIM,JSON.ARRINSERT) when a query matches nested arrays (e.g.$..*) by sorting matched paths deepest-first / highest-index-first while still returning replies in original match order.Tightens JSON input parsing by requiring
serde_json::Deserializer::end()after deserialization (in bothIValueandserde_json::Valuemanagers), soJSON.SETand related parsing now rejects valid JSON followed by trailing characters.Updates JSONPath filter evaluation to support multi-result subqueries in comparisons via a
NodeList(match succeeds if any element matches), and stops applying filter selectors to primitive values per RFC 9535; adds/updates Python + Rust tests to cover these cases and to ensure recursive-descent filters don’t duplicate scalar results.Reviewed by Cursor Bugbot for commit b79bc89. Bugbot is set up for automated code reviews on this repo. Configure here.