summaryrefslogtreecommitdiffstats
path: root/keystone
diff options
context:
space:
mode:
authorGordon Chung <chungg@ca.ibm.com>2013-02-06 12:34:06 -0500
committerGordon Chung <chungg@ca.ibm.com>2013-02-07 11:58:48 -0500
commit5342209a3dc0bf4e41cab87b894954526edcbffd (patch)
tree199b363835df5e0ba794b0b9af64cf8f85ab8c23 /keystone
parent8ec247bf61be0e487332d5d891246d2b7b606989 (diff)
downloadkeystone-5342209a3dc0bf4e41cab87b894954526edcbffd.tar.gz
keystone-5342209a3dc0bf4e41cab87b894954526edcbffd.tar.xz
keystone-5342209a3dc0bf4e41cab87b894954526edcbffd.zip
return 400 Bad Request if invalid params supplied (bug1061738)
return a 400 Bad Request if there are invalid arguments params supplied Change-Id: I82da8a6db4a2847c8407cd0917b2d71ac9f9ba7a
Diffstat (limited to 'keystone')
-rw-r--r--keystone/common/wsgi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/keystone/common/wsgi.py b/keystone/common/wsgi.py
index 42a4bc31..92f6e1c1 100644
--- a/keystone/common/wsgi.py
+++ b/keystone/common/wsgi.py
@@ -233,6 +233,9 @@ class Application(BaseApplication):
except exception.Error as e:
LOG.warning(e)
return render_exception(e)
+ except TypeError as e:
+ logging.exception(e)
+ return render_exception(exception.ValidationError(e))
except Exception as e:
logging.exception(e)
return render_exception(exception.UnexpectedError(exception=e))