From f63ad574e580360996807931f9c9cfa363385c3d Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Sun, 24 Mar 2019 12:12:53 +0530 Subject: [PATCH] fix: Dont append request data to form_dict This breaks many whitelisted methods which do not expect a data arg, and also the methods which expect an optional data arg but the value is not passed. Examples: frappe.desk.reportview.get frappe.desk.doctype.bulk_update.bulk_update.submit_cancel_or_update_docs --- frappe/app.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/frappe/app.py b/frappe/app.py index 9da7ea71a0..4e905afccf 100644 --- a/frappe/app.py +++ b/frappe/app.py @@ -57,8 +57,6 @@ def application(request): response = frappe.handler.handle() elif frappe.request.path.startswith("/api/"): - if frappe.local.form_dict.data is None: - frappe.local.form_dict.data = request.get_data() response = frappe.api.handle() elif frappe.request.path.startswith('/backups'):