diff options
| author | Adrian Torres <adt@odoo.com> | 2020-04-07 08:57:49 +0000 |
|---|---|---|
| committer | Adrian Torres <adt@odoo.com> | 2020-04-08 13:22:34 +0000 |
| commit | 2cb77eb10462efe7fd36e5428b56cd0933ae645e (patch) | |
| tree | 37ec5fc7b743edac54d009a3e19acb462a3a10f2 /addons/project/data/project_data.xml | |
| parent | 7a65152bcc1bfc830ffa5026a6068a55374b07b0 (diff) | |
[FIX] http: do not redirect to database manager on registry crash
Before this commit if the loading of the registry failed because of an
AttributeError or a psycopg2 error the http dispatcher would redirect
the user to the database manager.
This can be problematic because integrators (e.g. odoo.sh) may choose to
disable / forbid access to the database manager, and when the registry
crashes because of e.g. a migration, the real error will be overshadowed
by an AccessDenied error or somesuch depending on the path taken to
forbid access to the database manager.
With this commit, the real exception is simply reraised
closes odoo/odoo#49238
X-original-commit: de4e67dcc52916337251370387aea6aea893a60e
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/project/data/project_data.xml')
0 files changed, 0 insertions, 0 deletions
