glance/api-ref/source
Dinesh Bhor 2562da28c6 Fix 500 if user passes name with more than 80 characters
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
2017-10-05 10:24:22 +05:30
..
v1 Fix some typos in api-ref 2016-12-21 22:12:27 +08:00
v2 Fix 500 if user passes name with more than 80 characters 2017-10-05 10:24:22 +05:30
versions api-ref: add interoperable image import docs 2017-08-21 10:42:36 -04:00
conf.py Fix doc generation for Python3 2017-04-17 18:13:43 +05:30
index.rst Clean up api-ref index page 2017-09-27 15:23:32 -05:00