245: Error viewing the dashboard

Micha*****@gmai***** (Google Code) (Is this you? Claim this profile.)
chipx86
chipx86
Oct. 12, 2007
What's the URL of the page containing the problem?
http://reviewboard.eng.vmware.com/dashboard/

What steps will reproduce the problem?
1. Login as me (mvander**b*@*vmware)

What is the expected output? What do you see instead?
A page, instead I see the error:

AssertionError at /dashboard/
get() returned more than one ReviewRequestVisit -- it returned 2! Lookup 
parameters were {'user': <User: mvanderb>}

Request Method:  	GET
Request URL: 	http://reviewboard.eng.vmware.com/dashboard/
Exception Type: 	AssertionError
Exception Value: 	get() returned more than one ReviewRequestVisit -- 
it returned 2! Lookup parameters were {'user': <User: mvanderb>}
Exception Location: 	/usr/lib/python2.5/site-
packages/django/db/models/query.py in get, line 264
Python Executable: 	/usr/bin/python
Python Version: 	2.5.1

Caught an exception while rendering: get() returned more than one 
ReviewRequestVisit -- it returned 2! Lookup parameters were {'user': 
<User: mvanderb>}
56 	<tr class="headers">
57 	<th><img src="/images/convo.png" width="18" height="16" alt="New 
Replies" /></th>
58 	<th><img src="/images/star_on.png" width="16" height="15" 
alt="Starred" /></th>
59 	{% column_header "summary" "Summary" %}
60 	{% column_header "submitter" "Submitter" %}
61 	{% column_header "time_added" "Posted" %}
62 	{% column_header "last_updated" "Last Updated" %}
63 	</tr>
64 	</thead>
65 	<tbody>
66 	{% for review_request in review_request_list %}
67 	<tr class="{% cycle odd,even %}">
68 	<td>{% ifnewreviews review_request %}<img src="/images/convo.png" 
width="18" height="16" alt="" />{% endifnewreviews %}</td>
69 	<td>{% star review_request %}</td>
70 	<td class="summary" 
onclick="javascript:window.location='{{review_request.get_absolute_url}}'; 
return false;"><a href="{{review_request.get_absolute_url}}">{% 
reviewsummary review_request %}</a></td>
71 	<td><a href="{{review_request.submitter.get_absolute_url}}">
{{review_request.submitter}}</a></td>
72 	<td class="{% ageid review_request.time_added %}">
{{review_request.time_added|date:"F jS, Y, P"}}</td>
73 	<td class="{% ageid review_request.last_updated %}">
{{review_request.last_updated|timesince}} ago</td>
74 	</tr>
75 	{% endfor %}
76 	</tbody>

What operating system are you using? What browser?
IE or Firefox both have the problem.

Please provide any additional information below.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en"><head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta name="robots" content="NONE,NOARCHIVE"><title>AssertionError at /dashboard/</title>
  
  <style type="text/css">
    html * { padding:0; margin:0; }
    body * { padding:10px 20px; }
    body * * { padding:0; }
    body { font:small sans-serif; }
    body>div { border-bottom:1px solid #ddd; }
    h1 { font-weight:normal; }
    h2 { margin-bottom:.8em; }
    h2 span { font-size:80%; color:#666; font-weight:normal; }
    h3 { margin:1em 0 .5em 0; }
    h4 { margin:0 0 .5em 0; font-weight: normal; }
    table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
    tbody td, tbody th { vertical-align:top; padding:2px 3px; }
    thead th { padding:1px 6px 1px 3px; background:#fefefe; text-align:left; font-weight:normal; font-size:11px; 
david
#1 david
Looking at the database, I don't see anything that would cause this.  Is this still a
problem?
  • +NeedInfo
chipx86
#2 chipx86
Yeah, this doesn't look possible by our code. It has to have been some weird database
or Django glitch but I don't know how that would have happened. Please let us know if
you've been able to reproduce it. I think it was probably some weird random
occurrence so I'm going to close it for now since there's nothing we can do about it,
but please do reopen if this continues to be a problem.
  • -NeedInfo
    +ThirdParty
  • +chipx86