fix(jans-config-api): Fetching a non-existing trust relationship results in an empty body response and a 200 status #8162
Labels
comp-jans-config-api
Component affected by issue or PR
kind-bug
Issue or PR is a bug in existing functionality
Describe the bug
Invoking the endpoint
/saml/trust-relationship/id/{tr_inum}
results in a 200 OK response with an empty body if the specifiedtr_inum
refers to a non-existing trust relationship.Expected behavior
Invoking said endpoint should result in a 404 not found error with possibly an error object clearly indicating the trust relationship with said
inum
could not be found.The text was updated successfully, but these errors were encountered: