diff options
| author | Jeremy Kersten <jke@odoo.com> | 2020-07-16 15:51:50 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2020-07-17 12:47:59 +0000 |
| commit | c580197a20021931910a0531b5e7eb577a2d428f (patch) | |
| tree | fa57140b83151d98b85cfd65089dfbfcb0dff1d4 /addons/mail/static/src | |
| parent | 11b1b82c09950c7b13dc848b25d71d1499a5b711 (diff) | |
[FIX] base: handle_exception should never alter json response
Before this commit, in case you were in --dev-mode, if a json request crash,
it was wrongly intercepted and return a Internal Server Error with status 500
and without the JSON Response
For the change of http code, since it is only in dev mode, it could not impact
a production server (in theory) with custom code based on it.
After this commit, if your rpc fails, you will not have anymore a breakpoint in
the code to help the developer to debug. But you will have a status 200 on the
rpc request.
closes odoo/odoo#54668
X-original-commit: 534cca311db1ecf1005a24d5cbd50e166094ba2a
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/mail/static/src')
0 files changed, 0 insertions, 0 deletions
