[traceback] User is undefined

RESOLVED FIXED

Status

support.mozilla.org
General
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: mythmon, Assigned: giorgos)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: u=user [ee-needtofix])

(Reporter)

Description

2 years ago
https://sentry.prod.mozaws.net/operations/sumo/group/241427/

UndefinedError 'user' is undefined

Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "newrelic/hooks/framework_django.py", line 499, in wrapper
    return wrapped(*args, **kwargs)
  File "django/views/decorators/http.py", line 45, in inner
    return func(request, *args, **kwargs)
  File "session_csrf/__init__.py", line 127, in wrapper
    response = f(request, *args, **kw)
  File "kitsune/questions/views.py", line 1410, in watch_question
    html = render_to_string(tmpl, {'question': question, 'watch_form': form})
  File "django/template/loader.py", line 99, in render_to_string
    return template.render(context, request)
  File "django_jinja/backend.py", line 105, in render
    return self.template.render(context)
  File "newrelic/api/function_trace.py", line 98, in dynamic_wrapper
    return wrapped(*args, **kwargs)
  File "jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)
  File "/data/www/support.mozilla.org/kitsune/kitsune/questions/jinja2/questions/includes/question_vote_thanks.html", line 9, in top-level template code
    {% if not user.is_authenticated() %}
  File "jinja2/environment.py", line 371, in getattr
    return getattr(obj, attribute)
(Reporter)

Updated

2 years ago
Summary: [tracekback] User is undefined → [traceback] User is undefined
Assignee: nobody → giorgos
Status: NEW → ASSIGNED
Whiteboard: u=user → u=user [ee-needtofix]
Fixed here https://github.com/mozilla/kitsune/commit/89215ae118995b9b27cf05e3156e25a592aae77b
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.