René's URL Explorer Experiment


Title: Max query depth called later in beginExecuteOperation by bbakerman · Pull Request #2773 · graphql-java/graphql-java · GitHub

Open Graph Title: Max query depth called later in beginExecuteOperation by bbakerman · Pull Request #2773 · graphql-java/graphql-java

X Title: Max query depth called later in beginExecuteOperation by bbakerman · Pull Request #2773 · graphql-java/graphql-java

Description: Previously the MaxQuery depth instrumentation was called on the end of the validation step. But this is too early if there are null / non null variables mismatched. This caused and exception to be thrown and not a graphql error. We now call the instrumentation during the beginExecuteOperation which is JUST before execution proper and not after validation - because the Execution code does some more sensibility checks on the state of the call I started this branch from #2763 which showed the problem happening I am leaving that PR so we can improve the error messages - but this PR fixes the actual problem in the sense query checks are done a smidge later and avoid the problem all together

Open Graph Description: Previously the MaxQuery depth instrumentation was called on the end of the validation step. But this is too early if there are null / non null variables mismatched. This caused and exception to b...

X Description: Previously the MaxQuery depth instrumentation was called on the end of the validation step. But this is too early if there are null / non null variables mismatched. This caused and exception to b...

Opengraph URL: https://github.com/graphql-java/graphql-java/pull/2773

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4f4911ad-ab19-0dbb-0b26-9d2701fae234
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD1C0:3FD6E1:2D6B0D:3B24F7:6A5FED52
html-safe-nonce7229d8bf5b3062a65e8ef741e926079a84feee3402f8ecd0d7fc4410411d1715
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUMwOjNGRDZFMToyRDZCMEQ6M0IyNEY3OjZBNUZFRDUyIiwidmlzaXRvcl9pZCI6IjQ4NzExODQxODE4NDUwMjgxNzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacaa8932c27f9a9ec6113d654f802196aa8a89427dc2cbdaf6af5c992e719b25a0
hovercard-subject-tagpull_request:890115081
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/graphql-java/graphql-java/pull/2773/files
twitter:imagehttps://avatars.githubusercontent.com/u/1661769?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1661769?s=400&v=4
og:image:altPreviously the MaxQuery depth instrumentation was called on the end of the validation step. But this is too early if there are null / non null variables mismatched. This caused and exception to b...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneba296ecd3a3521238fe43b3b3b08cc09207ddc21173e16ee656db03803de8e2b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git
octolytics-dimension-user_id14289921
octolytics-dimension-user_logingraphql-java
octolytics-dimension-repository_id38602457
octolytics-dimension-repository_nwographql-java/graphql-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38602457
octolytics-dimension-repository_network_root_nwographql-java/graphql-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6e50fb37e29e4aa0df6386cb485e58b0e3ca97ab
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/pull/2773/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F2773%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F2773%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/pull/2773/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/2773/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/2773/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2773/files
graphql-java https://github.com/graphql-java
graphql-javahttps://github.com/graphql-java/graphql-java
Notifications https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Fork 1.1k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Star 6.2k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Code https://github.com/graphql-java/graphql-java
Issues 26 https://github.com/graphql-java/graphql-java/issues
Pull requests 12 https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality 0 https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
Code https://github.com/graphql-java/graphql-java
Issues https://github.com/graphql-java/graphql-java/issues
Pull requests https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
bbakermanhttps://github.com/bbakerman
masterhttps://github.com/graphql-java/graphql-java/tree/master
max-query-depth-called-laterhttps://github.com/graphql-java/graphql-java/tree/max-query-depth-called-later
Conversation 7 https://github.com/graphql-java/graphql-java/pull/2773
Commits 4 https://github.com/graphql-java/graphql-java/pull/2773/commits
Checks 0 https://github.com/graphql-java/graphql-java/pull/2773/checks
Files changed https://github.com/graphql-java/graphql-java/pull/2773/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2773/files
Max query depth called later in beginExecuteOperation https://github.com/graphql-java/graphql-java/pull/2773/files#top
Show all changes 4 commits https://github.com/graphql-java/graphql-java/pull/2773/files
9f6b430 Investigation of NonNullableValueCoercedAsNullException is being thro… bbakerman Mar 16, 2022 https://github.com/graphql-java/graphql-java/pull/2773/commits/9f6b430f7833e8a3b0c892c9e6b972e72771164e
fd7e70f Merge remote-tracking branch 'origin/master' into max-depth-and-coercing bbakerman Mar 26, 2022 https://github.com/graphql-java/graphql-java/pull/2773/commits/fd7e70fa1e7393e21b9bb38de7953dcceb24e0b1
1ed54d9 MaxQueryDepthInstrumentation and MaxQueryComplexityInstrumentation no… bbakerman Mar 26, 2022 https://github.com/graphql-java/graphql-java/pull/2773/commits/1ed54d983009b4c743fd422e242e7dacb467443d
46d4e53 use atomic ref bbakerman Apr 29, 2022 https://github.com/graphql-java/graphql-java/pull/2773/commits/46d4e53addbee9be66415b74c458d42380bdbefd
Clear filters https://github.com/graphql-java/graphql-java/pull/2773/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2773/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2773/files
MaxQueryComplexityInstrumentation.java https://github.com/graphql-java/graphql-java/pull/2773/files#diff-2696e88b9e4d095eea4d0e47b1c98ea872bfce3642c5aaee7317b1c3c2c478a5
MaxQueryDepthInstrumentation.java https://github.com/graphql-java/graphql-java/pull/2773/files#diff-2ccabc2bfeb67e15323d9185290e6c739eaec2aa1c1bdca1cecbdd9978a7fa40
QueryComplexityInfo.java https://github.com/graphql-java/graphql-java/pull/2773/files#diff-8bc1e3260f477c53724aec47d6bc278883f6903066acaf6bb260f84f3334bbcc
MaxQueryComplexityInstrumentationTest.groovy https://github.com/graphql-java/graphql-java/pull/2773/files#diff-85d57429e352cb6b0b8fc00289c325732be87c0c5775df3d5031fef2a7777f18
MaxQueryDepthInstrumentationTest.groovy https://github.com/graphql-java/graphql-java/pull/2773/files#diff-bb02336844adfe117caa2b9ac2f074220d10561ca0fc25a16203d18f2266f8c3
src/main/java/graphql/analysis/MaxQueryComplexityInstrumentation.javahttps://github.com/graphql-java/graphql-java/pull/2773/files#diff-2696e88b9e4d095eea4d0e47b1c98ea872bfce3642c5aaee7317b1c3c2c478a5
View file https://github.com/graphql-java/graphql-java/blob/46d4e53addbee9be66415b74c458d42380bdbefd/src/main/java/graphql/analysis/MaxQueryComplexityInstrumentation.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/2773/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-2696e88b9e4d095eea4d0e47b1c98ea872bfce3642c5aaee7317b1c3c2c478a5
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-2696e88b9e4d095eea4d0e47b1c98ea872bfce3642c5aaee7317b1c3c2c478a5
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-2696e88b9e4d095eea4d0e47b1c98ea872bfce3642c5aaee7317b1c3c2c478a5
bbakermanhttps://github.com/bbakerman
Mar 26, 2022https://github.com/graphql-java/graphql-java/pull/2773/files#r835825732
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2773/files
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-2696e88b9e4d095eea4d0e47b1c98ea872bfce3642c5aaee7317b1c3c2c478a5
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-2696e88b9e4d095eea4d0e47b1c98ea872bfce3642c5aaee7317b1c3c2c478a5
src/main/java/graphql/analysis/MaxQueryDepthInstrumentation.javahttps://github.com/graphql-java/graphql-java/pull/2773/files#diff-2ccabc2bfeb67e15323d9185290e6c739eaec2aa1c1bdca1cecbdd9978a7fa40
View file https://github.com/graphql-java/graphql-java/blob/46d4e53addbee9be66415b74c458d42380bdbefd/src/main/java/graphql/analysis/MaxQueryDepthInstrumentation.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/2773/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-2ccabc2bfeb67e15323d9185290e6c739eaec2aa1c1bdca1cecbdd9978a7fa40
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-2ccabc2bfeb67e15323d9185290e6c739eaec2aa1c1bdca1cecbdd9978a7fa40
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-2ccabc2bfeb67e15323d9185290e6c739eaec2aa1c1bdca1cecbdd9978a7fa40
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-2ccabc2bfeb67e15323d9185290e6c739eaec2aa1c1bdca1cecbdd9978a7fa40
src/main/java/graphql/analysis/QueryComplexityInfo.javahttps://github.com/graphql-java/graphql-java/pull/2773/files#diff-8bc1e3260f477c53724aec47d6bc278883f6903066acaf6bb260f84f3334bbcc
View file https://github.com/graphql-java/graphql-java/blob/46d4e53addbee9be66415b74c458d42380bdbefd/src/main/java/graphql/analysis/QueryComplexityInfo.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/2773/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-8bc1e3260f477c53724aec47d6bc278883f6903066acaf6bb260f84f3334bbcc
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-8bc1e3260f477c53724aec47d6bc278883f6903066acaf6bb260f84f3334bbcc
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-8bc1e3260f477c53724aec47d6bc278883f6903066acaf6bb260f84f3334bbcc
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-8bc1e3260f477c53724aec47d6bc278883f6903066acaf6bb260f84f3334bbcc
https://github.com/graphql-java/graphql-java/pull/2773/files#diff-8bc1e3260f477c53724aec47d6bc278883f6903066acaf6bb260f84f3334bbcc
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/2773/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.