Skip to content

[Azure] Fix `Get Record by version` 500 Error for non matching version

Thulasi Dass Subramanian requested to merge az/td-fix-get-invalid-record into master

Change Description:

  • Issue reference: #181
  • Get Record by version: Fix GcsVersionPath checking condition from contains to endsWith for given version, to find the exact match of version path.
  • Below Response - HTTP 404 status with reason will be returned (instead of HTTP 50O status)
{
    "code": 404,
    "reason": "Version not found",
    "message": "The version 2 can't be found for record opendes:master-data--Well:999310036787"
}

Changes in:

  • Azure

Dev Checklist:

  • Added Unit Tests, wherever applicable.
  • Existing Tests pass
  • Verified functionality locally
  • Self Reviewed my code for formatting and complex business logic.
  • renamed few methods & variables for better readability
Edited by Thulasi Dass Subramanian

Merge request reports

Loading