Create volume API does not validate metadata
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
John Griffith |
Bug Description
Branch: master
Steps to repro:
1. Create a volume using the following POST body (containing a key which exceeds the database limit of 255 chars):
{
"volume": {
"size": 1,
"metadata": {"sssssssssssss
}
}
2. Observe the API response.
Expected Behavior:
API should return a 413 RequestEntityTo
Actual Result:
API returns a 200 Ok, however, truncates the (large) metadata.
NOTE: similar behavior on defining metadata containing 0 sized key/value.
Changed in cinder: | |
assignee: | nobody → Unmesh Gurjar (unmesh-gurjar) |
description: | updated |
Changed in cinder: | |
status: | New → Triaged |
Changed in cinder: | |
milestone: | none → grizzly-3 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | grizzly-3 → 2013.1 |
This is currently in progress as part of bp update- vol-metadata.