Closed Bug 1155337 Opened 11 years ago Closed 2 years ago

[traceback] DoesNotExist: Version matching query does not exist.

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: krupa.mozbugs, Unassigned)

References

()

Details

steps to reproduce: 1. Load https://addons.mozilla.org/Ru/seamonkey/user/edu270394/ sentry: http://sentry.mktmon.services.phx1.mozilla.com/mkt/addonsmozillaorg/group/15571/ traceback details: Stacktrace (most recent call last): (12 additional frame(s) were not displayed) ... File "/data/mkt.prod/www/addons.mozilla.org/deploy-olympia-prod-20150416174830-27447d048f/olympia/templates/impala/base.html", line 161, in top-level template code {% block main_content %} File "/data/mkt.prod/www/addons.mozilla.org/deploy-olympia-prod-20150416174830-27447d048f/olympia/templates/impala/base.html", line 166, in block "main_content" {% block content %}{% endblock %} File "/data/mkt.prod/www/addons.moz illa.org/deploy-olympia-prod-20150416174830-27447d048f/olympia/apps/users/templates/users/profile.html", line 104, in block "content" {% include "reviews/review.html" %} File "/data/mkt.prod/www/addons.mozilla.org/deploy-olympia-prod-20150416174830-27447d048f/olympia/apps/reviews/templates/reviews/review.html", line 50, in top-level template code <span class="item-note">{{ _('This review is for a previous version of the add-on ({0}).')|f(review.version.version) }}&nbsp;</span> File "jinja2/environment.py", line 397, in getattr return getattr(obj, attribute)
From the stacktrace and looking at some data it looks like the `reviews`.`version_id` field of the database is sometimes NULL but the template doesn't catch for this. I'm not sure if having a NULL version in the reviews table is a valid state or how it may end up in that state, however.
Product: addons.mozilla.org → addons.mozilla.org Graveyard
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.