From 6c4c8178f090d39f286d72a04be74ada788d2ff9 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 25 Mar 2017 20:21:03 -0700 Subject: [PATCH] zulip_login_required: Set request._query. This fixes an exception we had in the user_activity queue processor when changing email addresses, since the URL containing the confirmation key was longer than 50 characters. --- zerver/decorator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zerver/decorator.py b/zerver/decorator.py index c5b3333a5b..8654ba2d8b 100644 --- a/zerver/decorator.py +++ b/zerver/decorator.py @@ -305,6 +305,7 @@ def add_logging_data(view_func): def _wrapped_view_func(request, *args, **kwargs): # type: (HttpRequest, *Any, **Any) -> HttpResponse request._email = request.user.email + request._query = view_func.__name__ process_client(request, request.user, is_json_view=True) return view_func(request, *args, **kwargs) return _wrapped_view_func # type: ignore # https://github.com/python/mypy/issues/1927