No validation for the metadata properties
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
xiexs |
Bug Description
The following error will be raised while creating/updating a volume with metadata properties in which there are some long keys/values(more than 255).
{
"computeFault": {
"code": 500,
"message": "The server has either erred or is incapable of performing the requested operation."
}
}
It is easy to be reproduced:
curl -X PUT -H "X-Auth-Token: xxxxx" "http://
\"volume\": {
\"name\": \"updated_name\",
\"description\": \"updated_
\"metadata\": {\"key2\
}
}
The following APIs also have same issue:
- /backups API
- /types API
Changed in cinder: | |
assignee: | nobody → xiexs (xiexs) |
description: | updated |
Fix proposed to branch: master /review. openstack. org/330913
Review: https:/