Comment #5 on issue 2720 by ERROR (EXTERNAL IP): Internal Server Error: /dashboard/

Still in reviewboard == 1.7.6, djblets == 0.7.11.

More details:  This looks like a thread safety issue.

When constructing a new instance of DataGrid(), the column attributes aren't new Coulmn() instances.

Is going to break any other instances of the DataGrid. Because they all share the same Column instances.

from StringIO import StringIO
from django.core.handlers.wsgi import WSGIRequest
from django.contrib.auth.models import *
from django.contrib.auth.models import User
from import DashboardDataGrid
def fake_get(path='/', user=None):
...     req = WSGIRequest({
...             'REQUEST_METHOD': 'GET',
...             'PATH_INFO': path,
...             'wsgi.input': StringIO()})
...     from django.contrib.auth.models import AnonymousUser
...     req.user = AnonymousUser() if user is None else user
...     return req
ddg1 = DashboardDataGrid(fake_get(user=User.objects.get(username=username)))
ddg1.columns[0].datagrid == ddg1
ddg2 = DashboardDataGrid(fake_get(user=User.objects.get(username=username)))
ddg2.columns[0].datagrid == ddg2
ddg1.columns[0].datagrid == ddg1

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to