Skip to content

fix(json_family): Fix bugs where JSON commands were modifying values of other data types #5266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

BagritsevichStepan
Copy link
Contributor

@BagritsevichStepan BagritsevichStepan commented Jun 10, 2025

fixes #5265

In this PR, I added req_obj_type to the AddOrFind method. I see that this method is also used in other data types, which could lead to bugs. Once this PR is approved, I will review other commands and possibly remove the version of AddOrFind that doesn't need req_obj_type.

This PR fixes several bugs that are well described in the issue above::

  1. Fixed bug in the JSON.SET command
  2. Fixed bug in the JSON.DEL command
  3. Add comment to the JSON.GET command

@BagritsevichStepan BagritsevichStepan self-assigned this Jun 10, 2025
romange
romange previously approved these changes Jun 10, 2025
Signed-off-by: Stepan Bagritsevich <[email protected]>
Signed-off-by: Stepan Bagritsevich <[email protected]>
@BagritsevichStepan BagritsevichStepan force-pushed the json/fix-non-type-iterators branch from 0b4b285 to f8cde45 Compare June 11, 2025 06:59
@BagritsevichStepan
Copy link
Contributor Author

Actually, we do not need change AddOrFind here, create a separate ticket for this: #5271

@BagritsevichStepan BagritsevichStepan merged commit 070a59d into dragonflydb:main Jun 15, 2025
10 checks passed
@BagritsevichStepan BagritsevichStepan deleted the json/fix-non-type-iterators branch June 15, 2025 08:21
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.

JSON commands changing other datatypes
2 participants