'0 OK' successful response is returned on performing Update entity requests (e.g. UpdateAttribute) if use non-existed id value (quite confusing since it doesn’t affect database and doesn’t provide proper feedback for an operation containing e.g. id mistake)
Steps to Reproduce:
Run the backend server for the opened/platform (as described in the Readme).
Create a Namespace and an Attribute.
Perform AttributeService.UpdateAttributeValue gRPC request with filling required parameters but use not existed id value.
Invoke the request and observe response.
Actual Result:
Request unexpectedly passes and returns “0 OK” success code in response which may mislead user:
Expected Result:
Request should fail with “3 INVALID_ARGUMENT” response to give a feedback that irrelevant id was used and may require some corrections.
Additional Info:
id validation is performed properly e.g. on Deactivate Entity requests or when using parental entity ids in Create requests etc.
'0 OK' successful response is returned on performing Update entity requests (e.g. UpdateAttribute) if use non-existed id value (quite confusing since it doesn’t affect database and doesn’t provide proper feedback for an operation containing e.g. id mistake)
Steps to Reproduce:
Actual Result: Request unexpectedly passes and returns “0 OK” success code in response which may mislead user:
Expected Result: Request should fail with “3 INVALID_ARGUMENT” response to give a feedback that irrelevant id was used and may require some corrections.
Additional Info: id validation is performed properly e.g. on Deactivate Entity requests or when using parental entity ids in Create requests etc.
Correspondent JIRA issue: https://virtru.atlassian.net/browse/PLAT-3116