Can't display the "sent" folder in private messages

VERIFIED FIXED in 2011-10-04

Status

support.mozilla.org
General
--
critical
VERIFIED FIXED
6 years ago
6 years ago

People

(Reporter: atopal, Assigned: rrosario)

Tracking

unspecified
2011-10-04

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
When I click on it sent in the messages view: 
https://support.mozilla.com/en-US/messages/sent
it shows me the "An Error Occurred" screen. 

I'm not sure how to set severity accordingly, this is not necessarily something for an emergency push, but it needs to be fixed before the next regular push.

Comment 1

6 years ago
I can't reproduce it so it's probably related to some messages containing specific things.
(Reporter)

Comment 2

6 years ago
Yeah, I just confirmed that it is probably not a site wide issue, so you can down re-prioritize and move it to the next cycle. But I'd still like to see my sent messages ;)
Traceback:

Traceback (most recent call last):

  File "/data/www/support.mozilla.com/kitsune/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/support.mozilla.com/kitsune/apps/access/decorators.py", line 47, in _wrapped_view
    return view_fn(request, *args, **kwargs)

  File "/data/www/support.mozilla.com/kitsune/apps/messages/views.py", line 57, in outbox
    {'msgs': messages})

  File "/data/www/support.mozilla.com/kitsune/vendor/src/jingo/jingo/__init__.py", line 76, in render
    rendered = render_to_string(request, template, context)

  File "/data/www/support.mozilla.com/kitsune/vendor/src/jingo/jingo/__init__.py", line 94, in render_to_string
    return template.render(**get_context())

  File "/usr/lib/python2.6/site-packages/jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)

  File "/data/www/support.mozilla.com/kitsune/apps/messages/templates/messages/outbox.html", line 6, in top-level template code
    {% set active_tab = 'outbox' %}

  File "/data/www/support.mozilla.com/kitsune/apps/messages/templates/messages/base.html", line 4, in top-level template code
    {% set scripts = ('messages',) %}

  File "/data/www/support.mozilla.com/kitsune/templates/base.html", line 121, in top-level template code
    {% block content %}{% endblock %}

  File "/data/www/support.mozilla.com/kitsune/apps/messages/templates/messages/outbox.html", line 19, in block "content"
    {{ avatar_link(message.recipient) }}

  File "/data/www/support.mozilla.com/kitsune/apps/messages/templates/messages/includes/macros.html", line 5, in template
    <img src="{{ profile_avatar(user) }}" height="48" width="48" alt="{{ _('System') }}" />

  File "/data/www/support.mozilla.com/kitsune/apps/users/helpers.py", line 24, in profile_avatar
    profile = user.get_profile()

UndefinedError: 'messages.models.OutboxMessage object' has no attribute 'recipient'
OS: Mac OS X → All
Hardware: x86 → All
Target Milestone: 2011-09-20 → 2011-09-27
(Assignee)

Updated

6 years ago
Assignee: nobody → rrosario
(Assignee)

Updated

6 years ago
Target Milestone: 2011-09-27 → 2011-10-04
(Reporter)

Comment 4

6 years ago
Apparently it wasn't me alone: https://bugzilla.mozilla.org/show_bug.cgi?id=687024
(Assignee)

Comment 5

6 years ago
https://github.com/jsocol/kitsune/commit/402bf489e8d59d9253add0afdefd511b9e496aec

QA: One way to get to this state is to send a PM to a user and then delete that user. The message will then have no recipients.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Verified able to view the send folder w/o error after deleting a user that you sent a message to.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.