Closed
Description
Description
When an id is not found on a GetAsync(id)
request, the controller properly returns a NotFoundResult
. However, this seems to break after that and what is actually returned to the client is a NullReferenceException
.
Most concerning from a security standpoint is that the stack trace is returned.
The most common problem is when detailed internal error messages such as stack traces, database dumps, and error codes are displayed to the user (hacker). These messages reveal implementation details that should never be revealed.
Reference: Improper Error Handling
I updated my sample repo with a simple integration test (NotFound
) that reproduces this behavior. Please advise if I am missing something.
...
Environment
- JsonApiDotNetCore Version: 4.0.0-alpha3
- Other Relevant Package Versions: not sure
Metadata
Metadata
Assignees
Labels
No labels