Skip to content

Narrow catch-all in TryApplyDatabaseProjectionAsync #135

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

Activity

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

Metadata

Metadata

Labels

.NETPull requests that update .NET codebugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions