2562da28c6
Following apis are returning 500 error if user passes name with more than 80 characters: * md-tag-create * md-tag-update * md-object-create * md-object-update * md-property-create * md-property-update This happens because there is a discrepancy in db column length and glance-api length check in schema validation. In database the 'name' field for these API's is defined as of maximum 80 characters and in schema it is defined as of maximum 255 characters. So if user passes name with more than 80 characters and less than 255 characters database fails to store that value and shouts with following error which leads to 500 error to API user: (pymysql.err.DataError) (1406, u"Data too long for column 'name' at row 1") Fixed this issue by changing the maximum allowed length for 'name' from 255 to 80 in schema validation. APIImpact DocImpact Closes-Bug: #1719252 Change-Id: I4ae67457c3e4f5a6bfc3c1db2d305a9b7587395f
10 lines
400 B
YAML
10 lines
400 B
YAML
---
|
|
other:
|
|
- |
|
|
The metadefs schemas for 'property', 'properties', 'tag', 'tags',
|
|
'object', and 'objects' previously specified a 'name' element of maximum
|
|
255 characters. Any attempt to add a name of greater than 80 characters
|
|
in length, however, resulted in a 500 response. The schemas have been
|
|
corrected to specify a maximum length of 80 characters for the 'name'
|
|
field.
|