Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix: ensure that status codes are checked in any case#63

Open
ThomasObenaus wants to merge 1 commit into
machinebox:master from
supplyon:bugfix_check_status_code
Open

Fix: ensure that status codes are checked in any case #63
ThomasObenaus wants to merge 1 commit into
machinebox:master from
supplyon:bugfix_check_status_code

Conversation

@ThomasObenaus

@ThomasObenaus ThomasObenaus commented Nov 10, 2020

Copy link
Copy Markdown

If this check is missing then responses from the server with the graphql end-point that are not compliant to the graphql spec will be just ignored (not treated as an error).
One reason for this behavior of the server could be (e.g. springboot) that the request is already rejected before it reaches the graphql end-point due to missing authorization. In this case the security filter that does not know about graphql responds with an error that is not compliant to the GQL spec.
The same situation would be in case of a 404, 403 etc.

If this check is missing then responses from the server with the graphql end-point that are not compliant to the graphql spec will be just ignored (not treated as an error). 
One reason for this behavior of the server could be (e.g. springboot) that the request is already rejected before it reaches the graphql end-point due to missing authorization. In this case the security filter that does not know about graphql responds with an error that is not compliant to the GQL spec.
The same situation would be in case of a 404, 403 etc.

smettu1 commented Jan 14, 2022

Copy link
Copy Markdown

This fix will really help, wasted a lot of time on this one. #72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /