From 23a7b152762cf5a89fb362cbce41aac85d33cbf5 Mon Sep 17 00:00:00 2001 From: Toufik Benjaa Date: Tue, 2 Oct 2018 08:29:55 +0000 Subject: [PATCH] [FIX] http: avoid crash on jsonp POST+GET - This commit fixes a crash that happens when the server receive a JSON-P call done in two requests (a POST followed by a GET). The issue is due to the fact that when the first request is done (POST one) the member `params` is never initialized. This parameter is then used in the module `auth_signup` on an override of the method `dispatch` thus crashing the code. To avoid the crash, we now initialize `params`. closes odoo/odoo#27369 --- odoo/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/odoo/http.py b/odoo/http.py index c6020fe6294..62551947865 100644 --- a/odoo/http.py +++ b/odoo/http.py @@ -578,6 +578,7 @@ class JsonRequest(WebRequest): super(JsonRequest, self).__init__(*args) self.jsonp_handler = None + self.params = {} args = self.httprequest.args jsonp = args.get('jsonp')