Skip to content
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

Validate against a case gqlparser doesn't catch #197

Merged
merged 1 commit into from
May 18, 2022

Conversation

benjaminjkraft
Copy link
Collaborator

@benjaminjkraft benjaminjkraft commented May 15, 2022

While writing tests at some point I came across an invalid query that
gqlparser doesn't catch (see vektah/gqlparser#221), and which causes
a panic for us. Now we validate for it and return a nice error instead of
panicking.

Fixes #176.

Test plan: make check

I have:

  • Written a clear PR title and description (above)
  • Signed the Khan Academy CLA
  • Added tests covering my changes, if applicable
  • Included a link to the issue fixed, if applicable
  • Included documentation, for new features
  • Added an entry to the changelog

While writing tests at some point I came across an invalid query that
gqlparser doesn't catch, and which causes a panic for us.  Now we
validate for it and return a nice error instead of panicing.

Fixes #176.

Test plan: make check
Copy link
Member

@csilvers csilvers left a comment

Choose a reason for hiding this comment

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

Heh!

@benjaminjkraft benjaminjkraft merged commit 3685f3f into main May 18, 2022
@benjaminjkraft benjaminjkraft deleted the benkraft.crasher branch May 18, 2022 20: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.

genqlient crash in preprocessQueryDocument
3 participants