Skip to content

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

Merged
AvivDavid23 merged 1 commit into
8.6from
cherry-pick-0b3cc6ea-to-8.6
Apr 26, 2026
Merged

AvivDavid23 merged 1 commit into
8.6from
cherry-pick-0b3cc6ea-to-8.6

Conversation

@AvivDavid23

@AvivDavid23 AvivDavid23 commented Apr 26, 2026 •

Copy link
Copy Markdown
Contributor

Cherry-pick of 0b3cc6e onto 8.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: two call-site conflicts resolved by keeping the incoming Self::results_to_term(...) helper (the helper itself applied cleanly)
  • redis_json/src/ivalue_manager.rs: adapted MOD-7266 to 8.6's IValue::deserialize pattern (no IValueDeserSeed/fpha) while adding the deserializer.end() call

Made with Cursor


Note

Medium Risk
Changes affect JSONPath filter evaluation semantics and the execution order of array-mutating commands on multi-match/recursive paths, which can alter query results and mutation outcomes. Also tightens JSON input parsing by rejecting trailing characters, potentially impacting previously-accepted inputs.

Overview
JSONPath filter evaluation is updated to follow RFC 9535 by introducing a NodeList term result and making comparisons/regex succeed when any element in a multi-result subpath matches (e.g. @.*, @..key), plus ensuring filter selectors applied to primitive values select nothing.

Array mutation commands now execute in a safe order for recursive/multi-match paths by sorting matched paths deepest-first (and higher array indices first) for ARRPOP/ARRTRIM/ARRINSERT, while still returning replies in the original match order.

JSON.SET parsing is hardened by calling deserializer.end() after IValue::deserialize, rejecting literals/values with trailing characters; tests are added/updated to cover these behaviors and prevent duplicate/incorrect results in recursive filter cases.

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

* 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

codecov Bot commented Apr 26, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.64516% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.53%. Comparing base (14dc79d) to head (86d4263).
⚠️ Report is 1 commits behind head on 8.6.

Files with missing lines Patch % Lines
json_path/src/json_path.rs 52.27% 21 Missing ⚠️
redis_json/src/commands.rs 95.94% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              8.6    #1574      +/-   ##
==========================================
+ Coverage   77.51%   77.53%   +0.01%     
==========================================
  Files          15       15              
  Lines        3838     3881      +43     
==========================================
+ Hits         2975     3009      +34     
- Misses        863      872       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AvivDavid23
AvivDavid23 merged commit 48d7d3b into 8.6 Apr 26, 2026
114 of 115 checks passed
@AvivDavid23
AvivDavid23 deleted the cherry-pick-0b3cc6ea-to-8.6 branch April 26, 2026 11:15
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