deb-glance/glance/db
bhagyashris 6e10f1b4c9 Return BadRequest for 4 byte unicode characters
Various create and update apis are returning 500 error
when you pass 4 byte unicode characters in the request.

This patch fixes the issue to return HTTP 400 Bad Request.

1. md-namespace-create
2. md-namespace-update
3. md-property-create
4. md-property-update
5. md-object-create
6. md-object-update
7. md-tag-create
8. md-tag-update

APIImpact: For all of the above APIs, it will return 400 error instead
of 500 if user passes 4 byte unicode characters in the request.

Closes-Bug: #1570789
Change-Id:  I8233cf95310aa2671ebc62995c58208024fc38a3
2016-04-15 11:24:40 +00:00
..
registry Move Glance Artifact Repository API to separate endpoint 2016-02-10 18:34:55 +03:00
simple Return BadRequest for 4 byte unicode characters 2016-04-15 11:24:40 +00:00
sqlalchemy Return BadRequest for 4 byte unicode characters 2016-04-15 11:24:40 +00:00
__init__.py Fix update all props when you delete image 2016-03-03 13:54:59 +00:00
metadata.py Provide a way to upgrade metadata definitions 2015-03-12 00:26:16 -04:00
migration.py Fix existing migrations to create utf-8 tables for MySQL DB 2015-07-29 22:20:28 -07:00