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
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4f4911ad-ab19-0dbb-0b26-9d2701fae234 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D1C0:3FD6E1:2D6B0D:3B24F7:6A5FED52 |
| html-safe-nonce | 7229d8bf5b3062a65e8ef741e926079a84feee3402f8ecd0d7fc4410411d1715 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUMwOjNGRDZFMToyRDZCMEQ6M0IyNEY3OjZBNUZFRDUyIiwidmlzaXRvcl9pZCI6IjQ4NzExODQxODE4NDUwMjgxNzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aa8932c27f9a9ec6113d654f802196aa8a89427dc2cbdaf6af5c992e719b25a0 |
| hovercard-subject-tag | pull_request:890115081 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/graphql-java/graphql-java/pull/2773/files |
| twitter:image | https://avatars.githubusercontent.com/u/1661769?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1661769?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba296ecd3a3521238fe43b3b3b08cc09207ddc21173e16ee656db03803de8e2b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git |
| octolytics-dimension-user_id | 14289921 |
| octolytics-dimension-user_login | graphql-java |
| octolytics-dimension-repository_id | 38602457 |
| octolytics-dimension-repository_nwo | graphql-java/graphql-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38602457 |
| octolytics-dimension-repository_network_root_nwo | graphql-java/graphql-java |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6e50fb37e29e4aa0df6386cb485e58b0e3ca97ab |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width