summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/less/web_editor.common.less
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2017-02-10 21:12:15 +0100
committerSimon Lejeune <sle@openerp.com>2017-02-10 21:12:15 +0100
commitf915a679fabe392bdb9dd7d681999a4a5d59d1b1 (patch)
treee5088d785128b7a30f2730fa0621712197c38ee2 /addons/web_editor/static/src/less/web_editor.common.less
parenta282d4ae7f27869a0b828e8562f8efd901e02799 (diff)
[FIX] web: database selector and manager
The database manager and selector triggered an internal server error according to the modules installed. The issue is that some modules (like utm) overrode ir_http's dispatch and openned a cursor before calling super. Following rev[1], the database manager can tell you the incompatible databases. For that, it opens a new cursor to each database and get back the Odoo's version. After the information is fetched, the cursor is closed. Closing a cursor does not release it from the connection pool, so the database cannot be dropped and here comes the fix [2]: this commit removes all cursors to `database` from the connection pool. Now, if a module overrides the ir_http's dispatch and open a cursor before calling `super`, the automatic commit/close done at the end of a successful request cannot succeed in the database manager or selector as the cursor is closed during the call to super, leading to an internal server error. To workaround this issue, we explicitely set the cursor to None, as it will prevent the automatic commit/close at the end of the request. This is similar to rev 5c6087e38ee671ad5a3cf5aaa501d2a46af49872 [1] 96f703ff842d4b83e5431d4167d7ac6f40044c94 [2] 610036756ac25796d035e4a702416fd9fddc58da
Diffstat (limited to 'addons/web_editor/static/src/less/web_editor.common.less')
0 files changed, 0 insertions, 0 deletions