diff options
| author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-01-26 23:23:04 +0000 |
|---|---|---|
| committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-01-26 23:23:04 +0000 |
| commit | cefc979a001d82cca6ddfa1fd1abea698be458b7 (patch) | |
| tree | 058ee8a77d1055abce986eec631e755ea9680fe6 /nova/api | |
| parent | 7b5e9079415bcdb7c3514822e1d5cb7c67c267ce (diff) | |
| download | nova-cefc979a001d82cca6ddfa1fd1abea698be458b7.tar.gz nova-cefc979a001d82cca6ddfa1fd1abea698be458b7.tar.xz nova-cefc979a001d82cca6ddfa1fd1abea698be458b7.zip | |
Add a note explaining why unhandled exceptions shouldn't be returned
to users.
For future developers so they don't re-introduce a bug by accident.
Change-Id: I24f03adcc795db6252be988c076043bb74026733
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/api/openstack/__init__.py b/nova/api/openstack/__init__.py index 240bf0d80..e48f5c686 100644 --- a/nova/api/openstack/__init__.py +++ b/nova/api/openstack/__init__.py @@ -42,6 +42,10 @@ class FaultWrapper(base_wsgi.Middleware): except Exception as ex: LOG.exception(_("Caught error: %s"), unicode(ex)) exc = webob.exc.HTTPInternalServerError() + # NOTE(johannes): We leave the explanation empty here on + # purpose. It could possibly have sensitive information + # that should not be returned back to the user. See + # bugs 868360 and 874472 return wsgi.Fault(exc) |
