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

fix(gqlParser): Handle strings with only whitespace in parseID #6615

Merged
merged 2 commits into from
Oct 7, 2020

Conversation

jarifibrahim
Copy link
Contributor

@jarifibrahim jarifibrahim commented Oct 1, 2020

ParseID function would panic if the input consists of only whitespace characters. This PR fixes it.

Fixes GRAPHQL-720


This change is Reviewable

@jarifibrahim jarifibrahim changed the title fix(gqlParser): Handle strings with only whitespace fix(gqlParser): Handle strings with only whitespace in parseID Oct 1, 2020
@github-actions github-actions bot added the area/querylang Issues related to the query language specification and implementation. label Oct 1, 2020
Copy link
Contributor

@pawanrawal pawanrawal left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @abhimanyusinghgaur, @manishrjain, and @vvbalaji-dgraph)

@jarifibrahim jarifibrahim merged commit d994cb3 into master Oct 7, 2020
@jarifibrahim jarifibrahim deleted the ibrahim/gql-panic branch October 7, 2020 13:34
jarifibrahim pushed a commit that referenced this pull request Oct 7, 2020
ParseID function would panic if the input consists of only whitespace characters. This PR fixes it.
Fixes GRAPHQL-720

(cherry picked from commit d994cb3)

Conflicts:
	gql/parser_test.go
jarifibrahim pushed a commit that referenced this pull request Oct 7, 2020
ParseID function would panic if the input consists of only whitespace characters. This PR fixes it.
Fixes GRAPHQL-720

(cherry picked from commit d994cb3)

Conflicts:
	gql/parser_test.go
jarifibrahim pushed a commit that referenced this pull request Oct 7, 2020
ParseID function would panic if the input consists of only whitespace characters. This PR fixes it.
Fixes GRAPHQL-720

(cherry picked from commit d994cb3)

Conflicts:
	gql/parser_test.go
jarifibrahim pushed a commit that referenced this pull request Nov 2, 2020
#6674)

ParseID function would panic if the input consists of only whitespace characters. This PR fixes it.
Fixes GRAPHQL-720

(cherry picked from commit d994cb3)

Conflicts:
	gql/parser_test.go
jarifibrahim pushed a commit that referenced this pull request Nov 2, 2020
#6673)

ParseID function would panic if the input consists of only whitespace characters. This PR fixes it.
Fixes GRAPHQL-720

(cherry picked from commit d994cb3)

Conflicts:
	gql/parser_test.go
jarifibrahim pushed a commit that referenced this pull request Nov 2, 2020
#6672)

ParseID function would panic if the input consists of only whitespace characters. This PR fixes it.
Fixes GRAPHQL-720

(cherry picked from commit d994cb3)

Conflicts:
	gql/parser_test.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/querylang Issues related to the query language specification and implementation.
Development

Successfully merging this pull request may close these issues.

2 participants