FHIR
FHIR copied to clipboard
Support adding warning messages to Operation Outcome through Interceptor
Describe the bug Support adding warning messages to Operation Outcome If there are any validation failures in the interceptor and a warning message needs to be passed back with the response.
Environment Which version of LinuxForHealth FHIR Server? 5.0
To Reproduce Steps to reproduce the behavior:
- Go to 'AuthzPolicyEnforcementPersistenceInterceptor.validateSecurityContext()' method.
- When the securityContext validation fails for a Binary resource, currently the warning message is only being logged.
Expected behavior If there are any validation failures in the interceptor, there should be a provision to send the warning messages back with the original response through Operation Outcome.
Related to https://github.com/linuxforhealth/fhir/issues/3716