]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Return BadRequest for invalid Unicode names
authorEric Harney <eharney@redhat.com>
Mon, 11 Jan 2016 20:48:18 +0000 (15:48 -0500)
committerEric Harney <eharney@redhat.com>
Mon, 11 Jan 2016 20:57:28 +0000 (15:57 -0500)
commitee79580b4f68fd0f42dc5e4b9033ea99d0f923da
tree6d9bcbbe5f38bab26b36b3b41a4a9091e2d67deb
parent81f7986c16ecd589017486e60fb39544c5c409a8
Return BadRequest for invalid Unicode names

If the database fails to insert values due to them
containing Unicode that the database can't support (or other
similar errors that fall under DBDataError), return an
HTTP 400 Bad Request rather than HTTP 500.

The following fix in oslo.db is needed for this to be
most useful, but is not a requirement:
  https://review.openstack.org/#/c/265921/

This will need to be applied to numerous calls other
than just volume_create, as well.

Closes-Bug: #1393871
Partial-Bug: #1531400

Change-Id: I8f71df58082adca95c30d69eab211529025a3ab6
cinder/db/sqlalchemy/api.py