Skip to content

Narrow catch-all in TryApplyDatabaseProjectionAsync #135

@erlendellefsen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions