Throw InvalidInput error in case name and description above max length

Bug #2023964 reported by kiran pawar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
In Progress
Undecided
kiran pawar

Bug Description

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.

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

kiran pawar (kpdev)
Changed in manila:
assignee: nobody → kiran pawar (kpdev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/manila/+/886164

Changed in manila:
status: New → In Progress
kiran pawar (kpdev)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 17.0.0.0rc1

This issue was fixed in the openstack/manila 17.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.