GET: /records/{recordID}/{version} - ERROR 500

Context

GET: /records/{recordID}/{version} fails with error 500 if an invalid version is provided (see the attachment)

We noticed an odd behavior of the service:

List of existing versions of the following record: opendes:work-product-component--SamplesAnalysis:e9f02f48f43149a8b69606ff7597f391

image

If request unexisting version 1 - status error 500

image

Meanwhile, if request unexisting version 1234 - status 404

image

Azure GLab Logs image

Expected Behavior

404 - status code

Edited by Siarhei Khaletski