Revise error message: when the /item-storage/batch... API call contains an invalid value - 500 error is returned
Description
Overview: When a POST call is made to /item-storage/batch/synchronous?upsert=true that contains an invalid value for permanentLoanTypeId the response is a 500 error without returning any details about the problem.
Actual Results: The API call returns a 500 - internal server error - without any details about the problem. This issue is recorded in the log: [mod_inventory_storage] ERROR Conn saveBatch size=1 ERROR: invalid input syntax for type uuid: "[no permanentLoanTypeId]" (22P02)
Overview:
When a POST call is made to /item-storage/batch/synchronous?upsert=true that contains an invalid value for permanentLoanTypeId the response is a 500 error without returning any details about the problem.
Steps to Reproduce:
POST to
https://okapi-bugfest-orchid.int.aws.folio.org/item-storage/batch/synchronous?upsert=true
BODY (attached in text file)
Expected Results:
The API should return details about the error.
Actual Results:
The API call returns a 500 - internal server error - without any details about the problem. This issue is recorded in the log:
[mod_inventory_storage] ERROR Conn saveBatch size=1 ERROR: invalid input syntax for type uuid: "[no permanentLoanTypeId]" (22P02)
Additional Information:
URL:
Interested parties: