Skip to content

Unable to suppress or remove duplicate Errors #8087

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

Open
msheluga opened this issue Mar 4, 2025 · 0 comments
Open

Unable to suppress or remove duplicate Errors #8087

msheluga opened this issue Mar 4, 2025 · 0 comments

Comments

@msheluga
Copy link

msheluga commented Mar 4, 2025

Product

Hot Chocolate

Version

14.3

Link to minimal reproduction

https://github.com/msheluga/HC14Test

Steps to reproduce

using the adventureworks DB, run the project and execute the following query
query { address(order: [{ addressID: ASC }], first: 100) { edges { cursor node { addressID city rowguid postalCode addressLine1 modifiedDate stateProvinceID } } } }
with the auth header
C8104FC7-8643-4908-B88E-61AA6A3FCF36

this will cause 100 error messages for each column that the ID doesn't have permissions to.

What is expected?

a way or means to suppress or remove errors, either through passing null or some metadata or extra property

What is actually happening?

IErrorFilter can be used to remove the duplicates but it will throw an error itself because an IError needs to be sent back instead of null

Relevant log output

Additional context

The only other option that has been investigated was custom middleware to rewrite the entire response. Fortify Security scans see this as injection and a security issue, so this is not a usable solution for us. If there is a way to do this other then what I have mentioned I greatly appreciate the feedback

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

No branches or pull requests

1 participant