barbican/barbican/common
Dave McCowan 9744f80186 Handle SQL Integrity Error More Generically
SQL command with IntegrityError when any number of
constraints fail to pass.  These include checking for
duplicates, checking for not null, or foreign key checks.

Barbican was reporting these all as duplicates which can confuse
debugging.  This patch reports the error more accurately as an
SQL constraint check failure.

Change-Id: I7043fe01f949326b1e38c8f320ece8418f36acc4
Co-Authored-By: Dave McCowan <dmccowan@cisco.com>
Closes-bug: #1489457
2017-03-06 15:48:40 +00:00
..
__init__.py Files with no code must be left completely empty 2016-11-17 14:19:47 +08:00
config.py Enable translations 2016-10-25 16:14:24 +08:00
exception.py Handle SQL Integrity Error More Generically 2017-03-06 15:48:40 +00:00
hrefs.py Fix some minor error 2016-11-02 15:18:43 +00:00
quota.py Add database commit for database writes when async operations are possible 2015-09-24 00:53:19 -04:00
resources.py Remove translations for debug level log 2016-11-03 10:21:21 +08:00
utils.py Checking barbican resource id in URI is a valid uuid 2016-09-28 16:19:12 +00:00
validators.py Fix some typos 2016-08-13 00:57:23 +02:00