Comment 0 for bug 2023964

Revision history for this message
kiran pawar (kpdev) wrote :

In case of snapshot create, if display name or display description is above max limit (fields created in db with limit 255), manila internally throws DB exception. but the error reported to user is not meaningful.

Fix this by validating name and description length in API layer itself and throw Invalid Input error if above max limit. Also, the code used to handle snapshot delete using DB API is wrong since such API does not exist.

Observed backtrace - https://paste.opendev.org/show/bCOp8WKA1Ps4vKtavggb/