You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Internal projection selections trigger authorization and leak into error paths #9939
Run dotnet repro-hc-v16-internal-selection-leakage.cs from the project root
What is expected?
A query that does not select an [Authorize]d, [IsProjected] field should not trigger that field's authorization policy, and errors[].path should never contain HotChocolate-internal field names (_combinedSelectionSet, __projection_alias_N).
For the repro: { items { items { id name } } } should return { "data": { "items": { "items": [{ "id": 1, "name": "ok" }] } } } with no errors.
What is actually happening?
A query that selects only id and name triggers authorization on Secret (which the client never asked for) and returns errors whose path contains field names the client never wrote (_combinedSelectionSet, __projection_alias_0):
Activity