microsoft / microsoft/fhir-server

AadSmartOnFhirProxyController.cs logs a caught null redirect URL as a NullRef exception

Open
#628 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-SMART Bug Tech-Debt Up for grabs
Dominant language
TSQL
Stars
1.4k
Forks
592
Avg merge
2d 7h
Merged PRs (30d)
41

Description

**Describe the bug**
AadSmartOnFhirProxyController.cs logs a caught null redirect URL as a NullRef exception

**To Reproduce**
If an empty redirect URL is passed to the AadSmartOnFhirProxyController.cs, the exception is caught appropriately, but still logged as a NullRef exception which appears in our exception list. This should be downgraded to informational or debug level.

**Expected behavior**
A less severe log should be created, such as debug or information level.

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.

Research direction

Start in AadSmartOnFhirProxyController.cs and trace the empty redirect URL path through its exception handling and logging. Check the controller's existing tests or logging conventions before making a change. Done means the expected caught condition no longer appears as a NullRef exception and is logged at an informational or debug level.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.