Skip to content

Properly escape double quotes and backslash in sdscatrepr#2036

Merged
zuiderkwast merged 4 commits into
valkey-io:unstablefrom
Fusl:fusl-sdscatrepr-escape-fix
May 2, 2025
Merged

Properly escape double quotes and backslash in sdscatrepr#2036
zuiderkwast merged 4 commits into
valkey-io:unstablefrom
Fusl:fusl-sdscatrepr-escape-fix

Conversation

@Fusl

@Fusl Fusl commented May 1, 2025

Copy link
Copy Markdown
Contributor

Fixes #2035, a bug introduced in #1342

Fusl added 2 commits May 1, 2025 08:22
Signed-off-by: Fusl <fusl@meo.ws>
@codecov

codecov Bot commented May 1, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.94%. Comparing base (8df0a6b) to head (8ebd101).
Report is 2 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #2036      +/-   ##
============================================
- Coverage     70.96%   70.94%   -0.03%     
============================================
  Files           123      123              
  Lines         66135    66133       -2     
============================================
- Hits          46934    46917      -17     
- Misses        19201    19216      +15     
Files with missing lines Coverage Δ
src/sds.c 87.85% <100.00%> (+1.18%) ⬆️

... and 13 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zuiderkwast zuiderkwast left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@madolson FYI. Apparently you reviewed the PR where the bug was introduced.

@zuiderkwast zuiderkwast added the to-be-merged Almost ready to merge label May 1, 2025
@zuiderkwast zuiderkwast moved this to In Progress in Valkey 8.1 May 1, 2025
Comment thread tests/unit/introspection.tcl Outdated
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson

madolson commented May 2, 2025

Copy link
Copy Markdown
Member

We did have some unit tests for sdscatrepr, but apparently not enough. Thanks for catching this.

@zuiderkwast zuiderkwast changed the title properly escape double quotes and backslash in sdscatrepr Properly escape double quotes and backslash in sdscatrepr May 2, 2025
@zuiderkwast zuiderkwast merged commit 4eeffda into valkey-io:unstable May 2, 2025
@github-project-automation github-project-automation Bot moved this from In Progress to To be backported in Valkey 8.1 May 2, 2025
mkmkme pushed a commit to valkey-io/valkey-py that referenced this pull request May 5, 2025
Some of MONITOR tests got broken due to a bug in the server:
valkey-io/valkey#2036

This commit disables those tests for these versions of Valkey server
thus letting the CI proceed.

Signed-off-by: Mikhail Koviazin <mikhail.koviazin@aiven.io>
mkmkme pushed a commit to valkey-io/valkey-py that referenced this pull request May 5, 2025
Some of MONITOR tests got broken due to a bug in the server:
valkey-io/valkey#2036

This commit disables those tests for these versions of Valkey server
thus letting the CI proceed.

Signed-off-by: Mikhail Koviazin <mikhail.koviazin@aiven.io>
rainsupreme pushed a commit to rainsupreme/valkey that referenced this pull request May 14, 2025
…2036)

Fixes valkey-io#2035, a bug introduced
in valkey-io#1342

---------

Signed-off-by: Fusl <fusl@meo.ws>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
@zuiderkwast zuiderkwast removed the to-be-merged Almost ready to merge label May 27, 2025
@ranshid ranshid removed the status in Valkey 8.1 Jun 4, 2025
@ranshid ranshid moved this to To be backported in Valkey 8.1 Jun 4, 2025
hpatro pushed a commit to hpatro/valkey that referenced this pull request Jun 4, 2025
…2036)

Fixes valkey-io#2035, a bug introduced
in valkey-io#1342

---------

Signed-off-by: Fusl <fusl@meo.ws>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
hpatro pushed a commit to hpatro/valkey that referenced this pull request Jun 4, 2025
…2036)

Fixes valkey-io#2035, a bug introduced
in valkey-io#1342

---------

Signed-off-by: Fusl <fusl@meo.ws>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Harkrishn Patro <harkrisp@amazon.com>
hpatro pushed a commit that referenced this pull request Jun 9, 2025
Fixes #2035, a bug introduced
in #1342

---------

Signed-off-by: Fusl <fusl@meo.ws>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Harkrishn Patro <harkrisp@amazon.com>
hpatro pushed a commit that referenced this pull request Jun 11, 2025
Fixes #2035, a bug introduced
in #1342

---------

Signed-off-by: Fusl <fusl@meo.ws>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Harkrishn Patro <harkrisp@amazon.com>
@hpatro hpatro moved this from To be backported to Done in Valkey 8.1 Jun 11, 2025
@hpatro hpatro moved this from Done to 8.1.2 in Valkey 8.1 Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 8.1.2

Development

Successfully merging this pull request may close these issues.

[BUG] sdscatrepr not escaping " and \ characters anymore

5 participants