microsoft / fhir-server

A service that implements the FHIR standard
MIT License
1.15k stars 490 forks source link

Adds exception block for handling managed identity for import #3901

Closed v-aljagtap closed 1 day ago

v-aljagtap commented 4 weeks ago

Description

We have added additional catch block to handle exceptions of "CredentialUnavailableException," which are thrown due to managed identity issues. In this catch block, we can return a 400 status code with complete stack as error message.

Related issues

Addresses issue AB#116962.

Testing

Created New OSS server with the latest changes Managed Identity disabled for the Web app. Run the Import request Result - Getting 400 status code with error message ("import operation failed for reason: Managed Identity cannot access storage account.").

FHIR Team Checklist

Semver Change (docs)

Patch|Skip|Feature|Breaking (reason)

v-aljagtap commented 4 weeks ago

/azp run

azure-pipelines[bot] commented 4 weeks ago
Commenter does not have sufficient privileges for PR 3901 in repo microsoft/fhir-server
v-aljagtap commented 1 day ago

We are created another pull request #3908. so, closing this PR.