intility / intility/json-api-toolkit

Narrow catch-all in TryApplyDatabaseProjectionAsync

Open
#135 0 comments 0 reactions 1 assignee View on GitHub

@erlendellefsen is already working on this.

Since Aug 20, 2026.

.NET bug
Dominant language
C#
Stars
7
Forks
0
Avg merge
1d 4h
Merged PRs (30d)
23

Description

JsonApiToolkit/Controllers/JsonApiController.cs:577 catches Exception and falls back to a full entity load. That swallows cancellation, OOM, and DB timeouts as benign warnings.

Acceptance criteria

  • catch uses a when filter limited to the expected reflection / EF expression-build exceptions (mirror FilteredIncludeBuilder.cs:187 and QueryHelpers.cs:137)
  • OperationCanceledException is not caught
  • Test: cancelling a request during projection cancels rather than falling back

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.