Skip to content

FIX: Minifying a String argument should escape quotes and slashes #174

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

Merged
merged 3 commits into from
Sep 21, 2020

Conversation

Enrico2
Copy link
Contributor

@Enrico2 Enrico2 commented Sep 21, 2020

fixes #170

This was a regression with the new Rust query planner; the minified implementation has a bug where if a String argument contains either \ character or a " character, they should be printed with escaping so that the eventual operation string is valid.

Test cases were added to ensure we don't regress. I've verified they fail without the fix.

Unrelated: Update license in Cargo.toml, this was wrong initially.

Ran Magen added 2 commits September 21, 2020 11:36
…shes

fixes #170

This was a regression with the new Rust query planner; the minified implementation has a bug where if a String argument contains either `\` character or a `"` character, they should be printed with escaping so that the eventual operation string is valid.

Test cases were added to ensure we don't regress. I've verified they fail without the fix.
@Enrico2 Enrico2 changed the title ran/fix not escaped string Bugfix #170: Minifying a String argument should escape quotes and slashes Sep 21, 2020
@Enrico2 Enrico2 marked this pull request as ready for review September 21, 2020 18:47
Copy link
Contributor

@trevor-scheer trevor-scheer left a comment

Choose a reason for hiding this comment

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

CHANGELOG entry and LGTM!

@Enrico2 Enrico2 changed the title Bugfix #170: Minifying a String argument should escape quotes and slashes FIX: Minifying a String argument should escape quotes and slashes Sep 21, 2020
@Enrico2 Enrico2 merged commit acc04a6 into main Sep 21, 2020
@Enrico2 Enrico2 deleted the ran/fix_not_escaped_string branch September 21, 2020 19:14
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.

Syntax Error: Expected \":\", found String \":\"." when sending as string with latest @apollo/gateway package
2 participants