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

GraphQL: Make sure the context terminate #26777

Merged
merged 1 commit into from Jul 18, 2022

Conversation

phillip-kruger
Copy link
Member

Fix #26748
Added tests for this scenario.

Signed-off-by: Phillip Kruger phillip.kruger@gmail.com

sberyozkin
sberyozkin previously approved these changes Jul 18, 2022
@sberyozkin sberyozkin self-requested a review July 18, 2022 10:09
@sberyozkin sberyozkin dismissed their stale review July 18, 2022 10:10

My approval was premature

@phillip-kruger
Copy link
Member Author

@cescoffier if the method is in a try-finally, the context terminate too early.

@cescoffier
Copy link
Member

Sorry, it should be in the throw clause not finally clause

@phillip-kruger
Copy link
Member Author

You mean try - catch (Throwable) ?

Signed-off-by: Phillip Kruger <phillip.kruger@gmail.com>
Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Looks good to me but I will let @cescoffier have the final say on it.

@cescoffier cescoffier merged commit aadc299 into quarkusio:main Jul 18, 2022
@quarkus-bot quarkus-bot bot added this to the 2.12 - main milestone Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CVE-2022-2466 - Request Context not terminated with GraphQL
5 participants