glance/glance/api
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
..
middleware Fix Image API 'versions' response 2017-08-19 13:00:20 -04:00
v1 Merge "Prevent v1_api from making requests to v2_registry" 2017-08-10 15:59:51 +00:00
v2 Fix 500 if user passes name with more than 80 characters 2017-10-05 10:24:22 +05:30
__init__.py Move Glance Artifact Repository API to separate endpoint 2016-02-10 18:34:55 +03:00
authorization.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
cached_images.py Add logging when policies forbid an action 2015-04-15 17:59:37 +02:00
common.py Merge "Import i18n functions directly" 2015-12-10 03:42:30 +00:00
policy.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
property_protections.py hacking: upgrade to 0.9.x serie 2014-10-06 14:41:03 +02:00
versions.py Fix Image API 'versions' response 2017-08-19 13:00:20 -04:00