[FIX] http,ir.http: refactor exception handling to allow request-specific handling
authorOlivier Dony <odo@openerp.com>
Fri, 28 Mar 2014 14:27:48 +0000 (15:27 +0100)
committerOlivier Dony <odo@openerp.com>
Fri, 28 Mar 2014 14:27:48 +0000 (15:27 +0100)
commit8809c77f6088c140355fba5f862c0335b1d90c4e
treedf6513123f402c32ad838068e1988723526b9759
parent9379dc0312ef4597e72d6429079791c02a6884ab
[FIX] http,ir.http: refactor exception handling to allow request-specific handling

Typically an exception during a JSON-RPC request must be
handled specifically and return a JSON-RPC error in all
cases. Previously the _authenticate() step could fail
during ir_http.dispatch() and bubble up to werkzeug,
yielding a dumb "Internal Server Error 500" even for
a JSON-RPC request.

bzr revid: odo@openerp.com-20140328142748-00haplmkc3fv6f9y
openerp/addons/base/ir/ir_http.py
openerp/http.py