Skip to content

Cherry-pick: Cherry-pick bug fixes to 8.8 (#1557) - #1579

Merged
AvivDavid23 merged 3 commits into
2.6from
cherry-pick-0b3cc6ea-to-2.6
Apr 26, 2026
Merged

AvivDavid23 merged 3 commits into
2.6from
cherry-pick-0b3cc6ea-to-2.6

Conversation

@AvivDavid23

@AvivDavid23 AvivDavid23 commented Apr 26, 2026 •

Copy link
Copy Markdown
Contributor

Cherry-pick of 0b3cc6e onto 2.6

Includes:

  • MOD-6722 Fix mutation ordering for array commands with recursive paths
  • MOD-7266 make sure to end() deserialization, to disallow trailing content
  • MOD-14664 Json Path evaluation - Allow multi-result nodelists in filter comparisons, Don't evaluate filters on scalar types

Conflict resolutions:

  • json_path/src/json_path.rs: inserted results_to_term helper + updated call sites + removed filter-on-scalar else-if branch
  • redis_json/src/commands.rs: 4 conflicts — sorting added inside json_arr_insert_legacy else block; 2x vec![RedisValue::Null; paths.len()] pre-initialization for indexed access
  • redis_json/src/ivalue_manager.rs: adapted MOD-7266 to 2.6's IValue::deserialize/e.into() error style while adding deserializer.end()

Made with Cursor


Note

Medium Risk
Behavior changes in JSONPath filter evaluation and in-place array mutations (ARRPOP/ARRTRIM/ARRINSERT) could affect query results and command replies for existing workloads, though covered by added tests and largely aligns behavior with RFC 9535.

Overview
Fixes JSONPath filter evaluation to support multi-result subqueries (e.g. @.*, @..key) by treating them as NodeLists and making comparisons/regex succeed when any element matches, and updates filter behavior to select nothing on primitives per RFC 9535.

Hardens JSON value ingestion by requiring serde_json deserialization to fully end() so JSON.SET rejects inputs with trailing characters.

Ensures array-mutating commands executed over recursive/multi-match paths apply updates in a safe mutation order (deepest paths first, higher indices first) while preserving client reply order; adds regression tests for nested-array recursive descent and for duplicate-free recursive filter results.

Reviewed by Cursor Bugbot for commit f89e919. Bugbot is set up for automated code reviews on this repo. Configure here.

AvivDavid23 and others added 3 commits April 26, 2026 08:48
* 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
Made-with: Cursor
@AvivDavid23
AvivDavid23 merged commit 95b33c4 into 2.6 Apr 26, 2026
56 of 57 checks passed
@AvivDavid23
AvivDavid23 deleted the cherry-pick-0b3cc6ea-to-2.6 branch April 26, 2026 11:18
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.

2 participants