57e006eac3
Some API calls may have returned useless error messages such as {"faultcode": "Client", "faultstring": " is not a valid option for ", "debuginfo": null} when a DB constraint failed. This commit improves the error message by reading the name of the foreign key that failed from the exception. The value of the parameters should have already been validated by WSME, this exception is only thrown when there is an issue with the database (corrupted DB, empty table or missing fields in a table). Story 2009957 Task 44919 Change-Id: Idd6480bc0a7de7c42b34601172c2dae50077aa48
7 lines
228 B
YAML
7 lines
228 B
YAML
---
|
|
fixes:
|
|
- |
|
|
The Octavia API returned an unhelpful message when a constraint failed
|
|
while creating an object in the DB. The error now contains the name and the
|
|
value of the parameter that breaks the constraints.
|